Clearing History in Ionic


Hello I looked at $ionicViewService.clearHistory()

But it does not wok.


Have you tried navClear?


No will try it and let you know. Thanks.


I need to clear the nav history in controller, so I checked the source code od that directive and find this:

        disableAnimate: true,
        disableBack: true

I add it in controller code before $state.go(…), and it can work.