I have app with sidebar menu. I am on second page and I am calling controller function which redirect me to first page using:
$state.go(\'app.home\');
At controller which you want to return HomeCtrl:
HomeCtrl
.controller('SavedCtrl', function($scope,...,$ionicHistory) { ... $ionicHistory.nextViewOptions({ disableBack: true }); $state.go('app.home'); }) .controller('HomeCtrl', function($scope,...,$ionicHistory) { $ionicHistory.clearHistory(); })