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

前端 未结 6 996
不知归路
不知归路 2021-01-30 12:56

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\');
         


        
6条回答
  •  误落风尘
    2021-01-30 13:19

    As long as you have included in you will see a back button by default on any view using app.

    Removing will remove the back button from all of the views using app. You can selectively disable it based on what template your viewing by setting hide-back-button="true" on the of that template.

    So, in your case, removing Back from menu.html will hide the back button on all views using app.

提交回复
热议问题