Lets say I built an app, that fetches data through axios.get from a database every time it loads or is refreshed. This makes the app slow, so I want to only get the data in the initial load of the app and put it into sessionStorage. Problem is that sessionStorage is not reactive. When I do this: and want to
Tag: session-storage
angular can not get user data form sessionstorage
sorry about my english. I use sessionstorage for keeping data. In sessionstorage have data enter image description here but in html, not showing data form sessionstorage. when I get only {{currentUser}} in html show like this enter image description here mycode services html and component how i can do to use please help me this image for {{ currentUser|json}} {{
Javascript: Retrieve all keys from sessionStorage?
Is it not posssible to retrieve all keys/objects that I stored in sessionStorage (or localStorage)? If I have done sessionStorage.name = ‘John’ and sessionStorage.city = ‘New York’, isn’t there a way to get a list that shows the keys name and city? Answer to get a list that shows the keys name and city Use Object.keys() function: