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

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.

1 Like

Did you try setting the login page as Root?

this.nav.setRoot(LoginPage);

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);
1 Like