Open Wingzzzzz opened 5 years ago
One workaround is to set view controller's back button text every time entered the page
You can also access the Navbar
as a ViewChild
. The navbar exposes the method setBackButtonText
.
And regarding the method of the view controller:
Change the title of the back-button. Be sure to call this after
ionViewWillEnter
to make sure the DOM has been rendered.
I'm submitting a ... (check one with "x") [x ] bug report
Current behavior: After setting back button text, it does not reflect right away in nav bar. Have to pop and push the page again. You can find the issue also stated in https://github.com/ionic-team/ionic/issues/7043
Expected behavior: Back button text changed after config changed
Steps to reproduce: In a page with nav-bar pushed by other page, change backButtonText to see if it change back button text right away
Related code: https://stackblitz.com/edit/backbuttonbug you can see can't change back button text instantly home tab -> contact -> to Chinese / English
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):