Angular11 set LocalStorage + Login Logout
-----------------
#seecoding, #angular11, #LocalStorage
-----------------
GitHub : https://github.com/KassWaenasa/local-storage
link ref: https://stackoverflow.com/questions/51536262/angular-6-saving-data-to-local-storage
For this Example, It will refresh 2 times.
1- After login
2- After log out
for me, I think acceptable.
but it has many ways to do it.
I just do an example of how to store data after logged in
and will clear all user data after logged out.
Good luck, Cheers