Angular 1.3 and $resource

10 views
Skip to first unread message

Victor Lyuboslavsky

unread,
Mar 29, 2015, 4:53:25 PM3/29/15
to angula...@googlegroups.com
I'm trying to use angular-cache 4.0.2 with Angular 1.3.15 and $resource

I replaced

var cache = $cacheFactory('users');

with

CacheFactory.createCache('users');
var cache = CacheFactory.get('users');

in my $resource, where 1 action was:

        getUsers: {
          method: 'GET',
          cache: cache
        },

I saw that the cace was no longer working -- the same HTTP request was being done 4 times, as opposed to only once with the regular $cacheFactory

Is Angular 1.3.x plus $resource supported?

-Victor

Jason Dobry

unread,
Mar 30, 2015, 12:15:35 PM3/30/15
to angula...@googlegroups.com
ngResource is now officially support in 4.1.0
Reply all
Reply to author
Forward
0 new messages