Issue
I have an app in Ionic 5 using Angular in which I need to programmatically navigate from the current page to the previous page. I tried using:
this._location.back();
and it works but doesn't triggers the back navigation animation like when you navigate with <ion-back-button>
, it just switches pages. So the question is how can you programmatically navigate back on an Ionic 5 app with Angular, in a way similar to what <ion-back-button>
does?
Solution
constructor(private navController: NavController){}
this.navController.back();
Answered By - Neha Shah
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.