<div *ngIf="pending"> <p-progressBar mode="indeterminate"></p-progressBar> <p-blockUI [target]="target" [blocked]="pending"> </p-blockUI> </div>