Vote count:
0
In AngularJS, the angular.org site states the following concerning $cacheFactory.Cache:
A cache object used to store and retrieve data, primarily used by $http and the script directive to cache templates and other data.
Why is there even a cache at all? After all, if I use the $http service or ng-include, when I download content, I can just store it into a variable, which is what I will do all the time anyway. So if my variable is made global, why would I need $cacheFactory.Cache to access cached downloads?
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire