|
|
|
|
|
by crucialfelix
4304 days ago
|
|
With basic $http or resource: You have to reload all the data each time you go to this view (if you navigate back to previous page it has to reload). You have to reload data that is used on multiple pages. eg. products, categories, tags and especially user The most common solution is to start stuffing things in $rootScope, after that you stuff it in localStorage using angular-cache (which is great). My own system keeps the user's menu in cache, so it loads near instantly when they come back to the site (still logged in). It invalidates the cache if the user or app version has changed. |
|
The cool thing about angular-data, is that stuff it available, even when the browser is offline and you do a refresh.