Hi all ! Could anyone suggest please, if exist way to handle ion-back-button click like in was it Ionic 3 ?
this.navBar.backButtonClick = (e: UIEvent) => { };
Hi all ! Could anyone suggest please, if exist way to handle ion-back-button click like in was it Ionic 3 ?
this.navBar.backButtonClick = (e: UIEvent) => { };
Why not useâŚ
<ion-back-button (click)="backButtonClick($event)"></ion-back-button>
You can use Angular Routing concept for Ionic 4.
1.Import below file,
import { Location } from â@angular/commonâ;
2.Declare in constructor as,
private location: Location
3.Declare below method.
goBack() {
this.location.back();
}
Call the method in Html file
<button class=ânav_btn back_btn floatLeftâ (click)=âgoBack()â>