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()ā>