angular-opensource icon indicating copy to clipboard operation
angular-opensource copied to clipboard

How to use with boolean?

Open skyfremen opened this issue 6 years ago • 1 comments

With Angular2-Busy I could start and stop the busy indicator with a boolean.

With my controller like: isBusy = true

When I try that with ng-busy I get the following error:

ERROR TypeError: busy.add is not a function at BusyTrackerService.push../node_modules/ng-busy/fesm5/ng-busy.js.BusyTrackerService.appendToQueue (ng-busy.js:233) at ng-busy.js:219 at Array.forEach () at BusyTrackerService.push../node_modules/ng-busy/fesm5/ng-busy.js.BusyTrackerService.loadBusyQueue (ng-busy.js:207) at BusyTrackerService.push../node_modules/ng-busy/fesm5/ng-busy.js.BusyTrackerService.load (ng-busy.js:156) at NgBusyDirective.push../node_modules/ng-busy/fesm5/ng-busy.js.NgBusyDirective.ngDoCheck (ng-busy.js:408) at checkAndUpdateDirectiveInline (core.js:18671) at checkAndUpdateNodeInline (core.js:19932) at checkAndUpdateNode (core.js:19894) at debugCheckAndUpdateNode (core.js:20528)

skyfremen avatar Apr 12 '19 07:04 skyfremen

Have we got a solution to this? Please help

minhtam-nguyennhat avatar Oct 01 '19 06:10 minhtam-nguyennhat