How to change "Back" text from navbar

Hi,

Just wanted to know if it is possible to change the “Back” string from navbar?

Thanks

@App({
  config: {
    backButtonText: 'Go Back'
   }
})

or

config.set('backButtonText', 'Go Back');

You can also do this on a view by view basis. See below, section setBackButtonText.
http://ionicframework.com/docs/v2/api/components/nav/ViewController/

export class MyClass{
 constructor(viewCtrl: ViewController){
   this.viewCtrl = viewCtrl
 }
 onPageWillEnter() {
   this.viewCtrl.setBackButtonText('Previous');
 }
}
2 Likes