In my local route http://localhost:9000/#/deviceDetail/ I have a controller that manage that view. Before going to that view I set some variables to the $rootScope
(for example $rootScope.dashboards
).
Once on that view I have acces to dashboards property, but when I refresh the page with F5
key for example the property dashboards is lost.
I tried to save the $rootScope
on the localStorage variable but I got circular reference problems with the JSON.stringify
method.
Any tip to manage that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…