Ionic framework $state.go(‘app.home’); is adding back button on page where I want to go (how to remove it)?

Use $ionicHistory in your controller before calling $state.go('app.home').

.controller('HomeCtrl', function($scope,...,$ionicHistory) {
  ...
  $ionicHistory.nextViewOptions({
    disableBack: true
  });

  $state.go('app.home');
});

Leave a Comment