az-promise-show
Directives to show or hide an element based on the resolved state of an angular promise.
See the example and the example code
Docs
Usage
Install the module
$ npm install az-promise-show --save
Or just download it from the dist directory.
Depend on the module
angular;
az-promise-show
I'm only shown when the promise is in flight
az-promise-hide
I'm only show when the promise is not in flight
az-promise-show-hide-class
By default, azPromiseShow uses 'ng-hide', but you can specify your own if you want. Or, you can use the azPromiseShowOptions service.
azPromiseShowOptions
angular;