Looking for something like an ionViewCanGoBack

Hi there,

I’d just like to ask if there’s a way for me to check if a user will leave a page, but only through a going back a page instead of both going back (pop) and going forward (push) a page as the currently available ionViewCanLeave allows. I’d like the user to be asked if he’s leaving mid-answering the form but not when the form’s been completed and we have to proceed to the next page.

I’n currently using Ionic 3.

I hope i’ve been clear about my issue.

Any help for a lowly pleb would be appreciated.