Displays a visual feedback for background operations like API calls or long lasting tasks
Available on gh-pages
- required: AngularJS >= 1.2.0
- optional (building purpose): NodeJS Bower Grunt NGDoc
See bower.json
and package.json
for more details
run bower install angular-loading-counter --save
Manually:
<script src="bower_components/dist/angular-loading-counter/angular-loading-counter.min.js"></script>
Or throught Grunt wiredep
var app = angular.module('yourAngularApp', ['dsg.loadingCounter'])
app.config(['$httpProvider', 'LoadingCounterProvider', function ($httpProvider, LoadingCounterProvider) {
// Configure an exclusion
LoadingCounterProvider.addExclusion(/^\/api\/utils\/country, /get/i);
// Push LoadingCounter in the http interceptors
$httpProvider.interceptors.push('LoadingCounter');
}]);
See the documentation for more details
checkout
- run
npm install && bower install
- write your code then run
grunt
commit
your changes
- run
- copy over core files to master branch
git checkout master
git checkout src dist docs
- update README, CHANGELOG, bower.json, and do any other final polishing to prepare for publishing
- git commit changes
- git tag with the version number, i.e.
git tag v1.0.0
- create github repo and push
- [if remote does not already exist or is incorrect]
git remote add origin [github url]
git push origin master --tags
(want to push master branch first so it is the default on github)git checkout gh-pages
git push origin gh-pages
- [if remote does not already exist or is incorrect]
- (optional) register bower component
bower register angular-loading-counter [git repo url]
-
Fix ngdoc to generate function reference
-
Add the possibility to display the
loadingCounter
directive based on a black/white list of tasks, to have different<loading-counters>
on the page