cgross / angular-busy

Show busy/loading indicators on any element during $http requests (or any promise).
http://cgross.github.io/angular-busy/demo
MIT License
1.44k stars 256 forks source link

Made changes for angular-promise-tracker 2.0 #21

Closed chandan-singh closed 10 years ago

chandan-singh commented 10 years ago

Added a service cgBusyTrackers which keeps track of all the 'trackers'. Service provides two methods: 1. addTracker 2. getPromiseTracker for adding tracker and retrieving tracker. See demo.js and spec.js for usage.

Anaphase commented 10 years ago

+1

cgross commented 10 years ago

Appreciate the effort. In the end I wanted to go a different route and move all the promise tracking code directly into angular-busy. There was just too much overhead making the libraries work together. It required more work on the user's part to wire up a promise-tracker and then pass it to angular-busy. Now angular-busy just needs a promise directly. Thanks anyway.