Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Overriding the back button handler

$
0
0

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.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>