I think you refer to regular web, not a single page app. The answer on how to share state between controllers on completely different pages, or on the same page after a page reload (or navigate and cone back later) is still the same -service.
You need a service that can preserve state. Whether it's a session storage, or if you need it more permanently, local storage, or even a remote, backend solution, it's the same. Make sure to call the service on every change that you wanna preserve from your controllers. Make sure your controllers base their initial state on a call to the service first. And of course, make sure service always saved the state in the browser or remote storage and that on a new page load, first initializes it's data from that browser or remote store. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
