On my local route http://localhost:9000/#/deviceDetail/, there is a controller that handles the view. Before navigating to this view, I set certain variables on the $rootScope
(such as $rootScope.dashboards
).
While on the view, I have access to the dashboards property. However, upon refreshing the page using the F5
key, the dashboards property gets lost.
I attempted to save the $rootScope
in the localStorage variable, but encountered circular reference issues with the JSON.stringify
method.
Does anyone have any suggestions on how to address this issue?