Persistent view data without ionic


I’m trying to get ionic’s ion-nav-view behavior working in a normal Angular project. In special I want to have the views data persistent through rout changes.

Whats the problem:
I have different rout’s with forms in it. When I fill a form with data, change the route and then back, all data got
In ionic it works perfect. Does anybody know how to accomplish that in a normal ng project??



Hi there.

Found the solution.
I just used the ui-router-extras module and extended my states with the sticky and deep state redirect property. For “sticky” views i had to use the name attribute in the ui-view tag to keep the views state persited between route changes. :grinning: