Answer the question
In order to leave comments, you need to log in
What is the correct way to use the cache in ng-resource so that it is up to date?
There is a User service:
settingsModule.factory('User', ['$resource',
function($resource){
var user = $resource( '/users/:Id', {}, {
query: {method: 'GET', cache: true, isArray: true},
get: {method: 'GET', cache: true, params: {Id: '@Id'}}
});
return user;
}]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question