I'm new to Angular JS and I'm trying to figure out how to save an object into $rootScope in my application. However, when I try to make a post request without including the object from rootScope, it doesn't work as expected.
Now, on a newly opened page, I want to access that object from rootScope. But, from what I understand, after a full redirection, rootScope loses its state or I might be missing something :)
In general, is there a way to store variables in rootScope without losing them after a full refresh? Or do I have to pass them with each request from one page to another?
Thanks!
P.S.: I am not using ng-view and I'm looking for an alternative solution without ng-view...