When the page built using the angular JS is refreshed, I am losing the state. Is there any way to keep the state.
Any help on this to handled this.
When the page built using the angular JS is refreshed, I am losing the state. Is there any way to keep the state.
Any help on this to handled this.
You can use the url (with get params - which is ugly), localStorage or cookies to save the state of your app.
The fastest way would be localStorage.
I should say that I don't use AngularJs, but I don't think is that hard to implement localStorage persistence.
Some packages that came up after a quick google search:
https://github.com/grevory/angular-local-storage
https://github.com/gsklee/ngStorage
Good luck.