Hi Richard,

Before I dive in deeply into this, why don’t you just build your own 
service for doing this?

something like:

(function () {

    cachedResource.$inject = ['$resource'];
    function cachedResource($resource) {
        var cache = {};
        return function (url, paramDefaults, actions, options) {
            if (cache[url]) {
                return cache[url];
            }

            cache[url] = $resource(url, paramDefaults, actions, options);

            return cache[url];
        };
    }

    angular.module('myApp',[])
     .service('cachedResource', cachedResource);

}());

Is that something you can use?

Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to