angular-restmod icon indicating copy to clipboard operation
angular-restmod copied to clipboard

Added support for multiple model types to shared.js

Open ldeboer opened this issue 9 years ago • 1 comments

Allows shared.js to store cache based on type of data, so it can store multiple objects with the same $pk, as long as they are of different types. Most of this code came from @jasonayre in issue #208. Lines 39-41 were added by me to fix a bug where model scopes would get nested after being cached. This way the scope is refreshed every time it is read from the cache.

ldeboer avatar Oct 24 '15 17:10 ldeboer

@ldeboer This PR is quite old and out of date. Do you still have any interest in getting it included?

jpulec avatar Sep 26 '16 19:09 jpulec