If we use $http in Angular to fetch data for a week, and the data remains unchanged throughout the week. However, every Sunday the data gets updated using $http.get. My question is, when new data is fetched, will it also update the data stored in local storage?
In my request.success() function, I am currently saving the data to local storage like this:
window.localStorage['storageName'] = angular.toJson(data);
After storing the data in local storage, I can access it using the following code:
var accessData = window.localStorage['storageName'];