Skip to content

Allow advanced version to accept a promise, or something that has a .promise or .$promise #102

@mtpultz

Description

@mtpultz

Of the two options to pass to cg-busy is it possible to have the advanced version to expect a promise (or something that has a .promise or .$promise similar to the simple version. That would allow the use of $q.defer() in the advanced version, and an easy invocation to either resolve or reject, for example:

// Controller
vm.busy = {
    promise: $q.defer(),
    templateUrl: 'something.html',
    message: '...',
    backdrop: false
}

// Template
<div cg-busy="vm.busy"></div>

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