ng-block-ui icon indicating copy to clipboard operation
ng-block-ui copied to clipboard

BlockUI directive not working in Angular 18

Open ShoulderMonkey opened this issue 5 months ago • 2 comments

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 selector like so:

`<block-ui [template]="foregroundSpinner" name="test" >

constructor( private blockUI: BlockUIService ){

  }

this.blockUI.start('test') `

ShoulderMonkey avatar Aug 29 '24 13:08 ShoulderMonkey