Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$cachedResource is not $resource #73

Open
Morriz opened this issue Mar 28, 2015 · 1 comment
Open

$cachedResource is not $resource #73

Morriz opened this issue Mar 28, 2015 · 1 comment

Comments

@Morriz
Copy link

Morriz commented Mar 28, 2015

At the moment your $cachedResource is not a drop-in replacement for $resource, as it requires one to rewrite all the code where $resource calls get made. I suggest you mixin/enrich your functionality on the original $resource provider, enabling drop-in and later removal of your module without breaking code.

So in an ideal scenario one would just load your plugin, optionally with a configuration that contains things such as TTL per resource, and it would just work without code rewriting.

I don't have much time to do this myself, but I can advise and review ;)

@felippenardi
Copy link

I'm wondering if it could be done today by decorating the $resourceProvider with $cachedResource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants