Comments (8)
It might be possible actually - I'll look into it and get back to you.
It would be something more like:
promiseTracker.trackNgResource(Project);
And you might have to list methods to track:
promiseTracker.trackNgResource(Project, ['get', 'update', 'remove', 'save']);
from angular-promise-tracker.
What do you mean with "Project"?
from angular-promise-tracker.
Project is the Project from your example.
var Project = new $resource('http://myapi.com/projects')
from angular-promise-tracker.
Great looking forward to it. Now everytime I make an api call I have to set the tracker on each call.
This feature would definitively keep project code clean.
from angular-promise-tracker.
Hi all!
Any news on this one ?
I'm looking forward to this feature too.
from angular-promise-tracker.
Indeed, this feature would be nice for some specific projects I work.
I vote for this!
from angular-promise-tracker.
Could someone open a PR? :-)
On Wednesday, August 7, 2013, Robert wrote:
+1
2013/8/7 Ismael Santos Kafeltz <[email protected]<javascript:_e({}, 'cvml', '[email protected]');>>
Indeed, this feature would be nice for some specific projects I work.
I vote for this!
—
Reply to this email directly or view it on GitHub<
https://github.com/ajoslin/angular-promise-tracker/issues/19#issuecomment-22253609>.
RM.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22256286
.
...sent from my iPhone
from angular-promise-tracker.
Closing for now, doesn't seem super necessary.
from angular-promise-tracker.
Related Issues (20)
- Pass tracker options along $http interceptor, or at promiseTracker "get" constructor HOT 3
- Add a usage example HOT 2
- test
- test
- test
- Allow manually pushing to the http interceptor list HOT 4
- 2.0.1 is not properly released (no tag etc.) HOT 3
- Re-add uglify to build process HOT 2
- publish to npm HOT 4
- Error when using with angularjs 1.3.0-rc.3 HOT 10
- View active promises HOT 3
- Active after requests have been satisfied HOT 4
- Please tag release v2.1.0 HOT 1
- infinite loop
- Publish 2.1.0 to npm HOT 8
- Add commonJS support
- Add minified files to the release package.
- Enhancement: return the added promise from `addPromise` HOT 2
- trackingCount() and active() not updating? HOT 1
- Improper tracked[] element removal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-promise-tracker.