Created
November 18, 2013 18:10
-
-
Save antonsamper/7532499 to your computer and use it in GitHub Desktop.
AngularJS $resource not caching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myApp.factory('myData', function ($resource) { | |
return $resource('http://example.com/api/events', {}, { | |
'options': { | |
'cache': true | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment