Ionic tabs navigation issue

I’m using both of the Ionic framework and IU router to make a better navigation for you my first web application.

Here a simple architecture so you can easily understand the structure :

The problem I’m facing is that i’m not able to keep the state when navigating between tabs. for example. when I go to the next tab and click on next view and Press return, then I navigate to the first button, and when I go back to the second tab, I don’t see the same state I left.

I can’t resolve this problem.

here is a DEMO :