$ionicHistory not working correctly


#1

I jump from a page that is not a tab to a tab page, on the tab page,I want to goback when the item is clicked。I use $ionicHistory.goBack() to go back。
I found a strange situation, the firsttime $ionicHistory.goBack() is working, but the second time is not working。

My ionic version is : 1.3.1

I have created a codepen demo

to reproduce the bug: click Go DashPage Button -> click Select button -> click item -> click Select button -> click item

Sorry for my poor English.


#2

Is there anyone who can help me


#3

I think it might have something to do with you using href instead of ui-sref. This way you might screw up the UI Router history


#4

But ionic user UI Router to manage the route。