title: AngularJs: store and retrieve data in local storage
body: <p>I am very new to Angular. Earlier I was using Javascript, but now I am learning AngularJs. Version currently using is 1.3.2.</p>
  
  <p>Problem is I am trying to use local storage.</p>
  
  <p>In Javascript, we use something similar to this:</p>
  
  <pre><code>localStorage.pic = data.pic;
  localStorage.id = data.uid;
  localStorage.name = data.name;
  </code></pre>
  
  <p>Is there anything similar to this in AngularJs?</p>
  
  <p>Thanks for your advise.</p>