I want a way to store a local variable that will remain there even if I changed the path ( The page) or the angular app. I tried $window.localStorage.set and get item and they didn't work as well as rootScope and $window.variable
Join the Stack Overflow Community
Stack Overflow is a community of 7.2 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
|
If you want to store the values in local storage you would use:
Then to retrieve your value you would use:
|
|||||||||||||
|