Hello Folks!
We are using Ionic 3.4.2 for our Desktop and Mobile application.
We would like to set the title and aria-label attributes of the ionic back button.
Is there a generic way to override the ionic back button or is there a easy way to ‘enrich’ an ionic component?
For now we added the following code inside the ionic page
@ViewChild(Navbar) navbar: Navbar;
ionViewDidEnter () {
let navbar = this.navbar;
let backbutton = navbar.getNativeElement().querySelector('.show-back-button');
if (backbutton !== undefined && backbutton !== null) {
let title = 'back-title';
backbutton.setAttribute("title", title);
}
}
Kind regards