I'm using Ionic and Angular JS to make a mobile application, using the UI-router for the purpose of routing between views.
I have a tiny problem which I'm not able to find a solution for.
Let me explain my app.
For all my views I have only one state named tab
you can see that in the demo i'm providing, and I'm using ui-sref
to change between views.
In the second view, I have inside another ion-nav-view
with a couple of views (view1, view2).
As you can see in the draft below :
Changing between views is working fine, but there is a problem which is direction; for example when I go from the Main_view1 to the Main_view2 and the I change to the Main_view2.view2 and then try to go back, it doesn't it goes forward and not back which is a problem (views are getting messed up) Here is a demo DEMO + CODE so you can understand my problem better