I have an angular 7 application using a angular ui-router@2.0.2 where I need to switch between views while maintaining the state of the views all the while.
I dont want ngOnInit to be called upon each route change, I'd rather want the views (even better - a specific view) to just switch between show/hide, without initializing/destroying the view components each time.
I've searched the ui-router documentation but couldn't find anything helpful.
I can probably workaround this problem by saving the state of each view in a service and loading it again but I'd rather avoid that.
Thanks in advance for any help!