DEV Community

Digamber Singh
Digamber Singh

Posted on • Originally published at positronx.io on

Angular 9|8|7 Firebase Tutorial – Save User Data in Local Storage

The post How to Save User Data in Local Storage using Angular 7 Firebase? appeared first on positronX.io.

Today we are going to create a simple app in which we are going to save user data in local storage using Angular 7 and Firebase real-time database. I will be showing you how you can maintain the user state even after you refresh the page in the Angular and Firebase.

I am going to use a simple logic when a user logs in the app we will save the user data in local storage. When a user logs out from the Angular application we remove the user data from local storage and set it to null.

Click here to read more

Oldest comments (0)