[SOLVED] $ionicHistory.clearHistory() and $ionicHistory.clearCache() in Ionic2


#1

What are the equivalent of

$ionicHistory.clearHistory()
$ionicHistory.clearCache()

in Ionic2?

After a logout, I won’t allow my user to go back in the application while performing “back” actions.


#2

Did you try setting the login page as Root?

this.nav.setRoot(LoginPage);


#3

Thx for your feedback. Yes you are right setting a new root cleared my issue. Actually I did it on the root nav

this.app.getRootNav().setRoot(LoginPage);