Wednesday, February 4, 2015

Angular.js caching your $http results

Angular.js has built-in support for caching. Just set cache to true when passing the $http options:

If you want more control you can use the $cacheFactory:

 

No comments: