I have developed one dashboard application in angular js which is having search functionality and multiple views with lots of different data coming from that search functionality.
Its single page application. So I am facing issue on page reload all data is gone and it shows view with blank data.
Is there any way to solve this issue or any language which help me to create single page application and maintain same data on page reload??
Any suggestion will be appreciated.
You can use sessionStorage to set & get the data.
Step 1 :
Create a
factory
service that will save and return the saved session data based on the key.Step 2 :
Inject the storageService dependency in the controller to set and get the data from the session storage.