Control back button behavior for ion-nav

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.

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-content class="has-header">

This was you can add what ever functionality you want