I have the following code in index.html:
<body ng-app="starter">
<!-- The nav bar that will be updated as we navigate -->
<ion-nav-bar>
<ion-nav-back-button class="button-dark"/>
</ion-nav-bar>
<!-- where the initial view template will be rendered -->
<ion-nav-view> <ion-view>
<ion-content>Hello!</ion-content>
</ion-view> </ion-nav-view>
Because of this a back button appears on every view. On one of the view, I want to override the back button logic i.e I want to prompt the user asking whether he wants to really go back. How do I achieve this?
Thanks.