ng-block-ui
ng-block-ui copied to clipboard
BlockUI directive not working in Angular 18
I'm upgrading to angular 18 from angular 17 in one of my projects and i'm getting error where using
@BlockUI()blockUI!: NgBlockUI
gives error:
TypeError: Cannot read properties of undefined (reading 'start')
had to switch to using the BlockUIService instead and specifying name in
`<block-ui [template]="foregroundSpinner" name="test" >
constructor( private blockUI: BlockUIService ){
}
this.blockUI.start('test') `