hiding back button in ionic, angularjs

后端 未结 9 1484
独厮守ぢ
独厮守ぢ 2020-12-08 10:57

I need to show and hide back button in different pages/views. I took reference from Justin Noel:


           


        
相关标签:
9条回答
  • 2020-12-08 11:58

    You can change the cache settings so that when the page is reloaded the controller is called again: http://ionicframework.com/docs/api/directive/ionNavView/

    0 讨论(0)
  • 2020-12-08 11:59

    The hide-back-button attribute on <ion-view> did the trick for me: <ion-view hide-back-button="true">

    See the official documentation here.

    0 讨论(0)
  • 2020-12-08 12:03
    $ionicHistory.nextViewOptions({
        disableBack: true
      });
    
      $state.go('app.home');
    
    0 讨论(0)
提交回复
热议问题