Nice looking slim progress bars provider for Angular.js applications.
It has similar API as original popular jQuery plugin (see references) to keep things as simple as possible.
The only dependency is angular.js framework.
File size is
~2kb when minified.
You can download
ngprogress-lite.js manually or install it with bower:
You will need only to include
ngprogress-lite.js to your project, and then you can start using
ngProgressLite provider in your controllers, services or directives.
For simple usage you can just call
done(), for example:
For more advanced usage you can set the number between
1 to set progress bar to specific state:
You can also increment the progress bar by random number (this will never get to
Also it is possible to get current state number of a progressbar:
Provider is highly customizable, here is the list of some options that you can specify:
minimum- change the minimum percentage (defaults to
speed- speed of transition animations (defaults to
ease- type of transition easings
- and even
template- but it's not recommended though :)
ngProgressLiteProvider settings object in module's config:
If you want to change progress bar's look, you need just edit tiny
ngprogress-lite.css file. Feel free to rewrite it as you wish ;)
If you have some style issues, please be sure that
ngprogress-lite.css is not overwritten by other styles (e.g.
z-index Bootstrap's navbar - link)
Inspired by Google, YouTube, Medium, etc.
- nprogress - original jQuery dependant solution
(c) 2013 MIT License