Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jq storage object on refresh

if(!localStorage.getItem('initData') || JSON.parse(localStorage.getItem('initData')).length === 0){
    $window.localStorage.setItem('initData', JSON.stringify($scope.initData));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jq #storage #object #refresh
ADD COMMENT
Topic
Name
3+4 =