imProgress is a wrapper of NProgress.js that automatically increases the bar's progress with each completed request (using an interceptor).
The loading bar increases a tiny bit with each completed request.
Install:
bower install --save imProgress
Add the module to your app:
angular.module('myApp', ['imProgress']);
Configuration can be done via the provider:
angular.config(function (imProgressProvider) {
imProgressProvider.configure({
/* any configuration for NProgress */
})
});
Documentation for NProgress can be found in their repository.
Closure Compiler is used to minimize the code. It is minimized using this command
closure-compiler --js_output_file=angular-im-progress.min.js --compilation_level SIMPLE angular-im-progress.js
Advanced optimizations are not used because as of now the AngularJS codebase does not support it.
Please file issues using GitHub's issue tracker.
Pull requests are more than welcome!