1.0.0 • Published 10 years ago
qipp-services-progress v1.0.0
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-progressAngular 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 lintUnit testing with Karma
npm testRequirements
Angular
- angular 1.4.3
Licence
Released under the MIT license by qipp.