qipp-services-progress

1.0.0 • Public • Published

qipp-services-progress Build Status npm version

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

Licence

Released under the MIT license by qipp.

Readme

Keywords

Package Sidebar

Install

npm i qipp-services-progress

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • qipp