To add caching inside http is pretty straight forward. ( by passing cache=true )
http://docs.angularjs.org/api/ng.$http has Cache option.
How do I add similar functionality in $resource in angularjs ?
Since 1.1.2 (commit), all the $httpConfig options are directly exposed in $resource action objects:
return { Things: $resource('url/to/:thing', {}, { list : { method : 'GET', cache : true } }) };
1.4m articles
1.4m replys
5 comments
57.0k users