Is there a way to change the back button text ( eg, from “Back” to “Cancel” ) only for certain views ?
Eg, I want my editMain’s back button text to be “Cancel”, but others’ should be “Back” as defined in index.html
app.js:
.state('tab.editMain', {
url: '/editMain',
views: {
'tab-dash': {
templateUrl: 'templates/editMain.html',
controller: 'EditMainCtrl'
}
}
})
index.html:
<body ng-app="starter" animation="slide-left-right-ios7">
<ion-nav-bar class="bar-positive nav-title-slide-ios7">
<ion-nav-back-button class="button-icon icon ion-chevron-left">
Back
</ion-nav-back-button>
</ion-nav-bar>