How can I handle the back button action on Ionic 2?
I want to be able to know what to do depending on which page is being shown to the user.
I didn\'t find a
Actually ionViewWillLeave works better in my case.
ionViewWillLeave
Here are the official docs about navigating lifecycle