I am using ionic 2.
I need get previous page name.
here is my code.
@ViewChild(Nav) nav:Nav
constructor() {
this.nav_app.viewDidEnter.subscribe(
view => console.log("Current opened view is : " + view.name);
)
}
still i am getting
Current opened view is : t
How can i get previous page name.
Kindly advice me,
Thanks