Control back button behavior for ion-nav


#1

I want to manually control the back button behavior for the ion-nav. Is there is a way to do this so that application don’t navigate to some of the back views.


#2

If you don’t put a nav-button in your ion-nav-bar, you can add buttons dynamically by using your view.

<ion-view title="Browse">

  <ion-nav-buttons side="left">
    <button menu-toggle="left"class="button button-icon icon ion-navicon"></button>
  </ion-nav-buttons>

  <ion-content class="has-header">
    <h1>Browse</h1>
  </ion-content>
</ion-view>

This was you can add what ever functionality you want