title: How I can store login user data in local storage in angular 8
body: <p>I want to store login user data in local storage in angular 8. and get the data of that user. in this, I'm not using Firebase auth service.</p>
  
  <p>here is my login code </p>
  
  <pre><code>login(empId: string, password: string){
    return this.af.database.ref('Users/' +empId).once('value').then(
      snap =&gt;{
        var userPassword = (snap.val() &amp;&amp; snap.val().password)
        if(password == userPassword){
         // this.router.navigate(['dashboard']);
        }
        else{
          console.log("Incorrect Password")
        }
      }
    )
  }
  </code></pre>