Ember service to observe when a request is in progress
Current version is running ember-cli >= 3.1.0
ember install ember-request-observer
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}}
All contributions are welcomed and encouraged.
Please make all pull requests to the dev
branch.
Thanks!