I have a number of pages, and on several of them are some components that are identical from page to page. It appears that they are re-instantiated on each page/route change, and this is not the behavior that I need. I would like them to maintain their state between pages, hopefully without having to set a bunch of global variables, and then processing them to restore my state after a page/route change.
I'm not sure what kind of process Angular 2 has to determine that these particular components should be re-instantiated, but would like to know what options I might have. The component I'm concerned about has quite a process in initialize itself and display, so it will be an annoyance to users if it does this on every new page.
I know this is pretty abstract and high-level, but I'm looking for as much insight as I can get to further my research. Thanks in advance.