So you're building your angular app. And you want a loading spinner.
You've tried the normal solution (or maybe you haven't), and it has problems. It presents a loading spinner on every request!
But you don't want the same global loading spinner whenever any request happens anywhere. That just won't work!
Instead, you want different indicators while different types of request are loading. You want one spinner while you're fetching data having to do with a user's pizza order, one while fetching user's profile data, and maybe another for some random service you have that returns a promise. All these on different parts of the UI. Heck, maybe you don't even want a spinner. You just want to know while http requests of some type are pending.
Well, sigh no more my dear friend, your troubles are over.
Check out the wiki!
- Install karma & grunt with
npm install -g karma grunt-cli
to build & test - Install local dependencies with
bower install && npm install
- Run
grunt
to lint, test, build the code, and build the docs site
angular-promise-tracker by Andy Joslin is free of known copyright restrictions.