ember-request-observer
v0.2.1
Published
Ember service to observe when a request is in progress
Downloads
7
Maintainers
Readme
Ember-request-observer
Ember service to observe when a request is in progress
Versions
Current version is running ember-cli >= 3.1.0
Installation
ember install ember-request-observer
Usage
Inject the service to controller or component
requestObserver: inject.service('request-observer')
Use the requestInProgress
method like so: requestObserver.requestInProgress
| result | description | | ------ | ------------------------ | |true | a request is in progress | |false | no requests in progress |
It can be used on the controller/component as well as in the template like so:
{{requestObserver.requestInProgress}}
Contributions
All contributions are welcomed and encouraged.
Please make all pull requests to the dev
branch.
Thanks!