Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

How to use with boolean?Β #15

@skyfremen

Description

@skyfremen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions