title: Angularjs: Why page refresh destroy the values of $rootScope?
body: <p>In my local route <a href="http://localhost:9000/#/deviceDetail/" rel="noreferrer">http://localhost:9000/#/deviceDetail/</a> I have a controller that manage that view. Before going to that view I set some variables to the <code>$rootScope</code> (<em>for example <code>$rootScope.dashboards</code></em>). </p>
  
  <p>Once on that view I have acces to dashboards property, but when I refresh the page with <code>F5</code> key for example the property dashboards is lost.</p>
  
  <p>I tried to save the <code>$rootScope</code> on the localStorage variable but I got circular reference problems with the <code>JSON.stringify</code> method.</p>
  
  <p>Any tip to manage that?</p>