How to access Local and Session variable in Angular
To Set Value in Session storage
Sessionstorage.SetItem('key','value')
To get Value from Session storage
Sessionstorage.getitem('key')
To set Value in Local storage
localstorage.SetItem('key','value')
To get Value from Local storage
sessionstorage.getitem('key')
How to Clear Session variable
sessionstorage.clear()
How to remove all session items .
sessionstorage.removeitem('key')
local storage works like Viewstate and session storage work like session variable .
http://xafdeveloper.blogspot.com
https://youtu.be/povG03z340E
No comments:
Post a Comment