How to store data permnanently in angularjs -


i find whenever refresh page, angular rebuild whole module. there way store data permanently. cookie service way?

you can use local storage this:

localstorage.setitem('variable', 'stored value'); alert(localstorage['variable']); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -