jq storage object on refresh

Solutions on MaxInterview for jq storage object on refresh by the best coders in the world

showing results for - "jq storage object on refresh"
Marlena
13 May 2016
1if(!localStorage.getItem('initData') || JSON.parse(localStorage.getItem('initData')).length === 0){
2    $window.localStorage.setItem('initData', JSON.stringify($scope.initData));
3}
4