qipp-services-progress
v1.0.0
Published
Progress service for Angular application.
Downloads
3
Readme
qipp-services-progress
General
This service is self-invoked in this module as an http(s) interceptor. It does not make any change on the ongoing and outgoing traffic, it simply watch the overall situation of the request, the responses and the potential errors. Then, it emits a progress event on the rootScope for further use.
Install
npm i qipp-services-progress
Angular usage
This service never needs to be called directly, as it is a self-called interceptor. Simply listen on the $rootScope:
$rootScope.$on('progress', function (event, percent) {
console.log(percent) // [0 -> 100]
}
)
Tools
Linting with StandardJS
Please refer to the JavaScript Standard Style for general rules.
npm run lint
Unit testing with Karma
npm test
Requirements
Angular
- angular 1.4.3
Licence
Released under the MIT license by qipp.