How to show a confirmation message before changing a Tab


#1

Hello,

My ionic 3 application has an ion-tabs with two Tabs. When switching from tab to tab, I wanna show a confirmation message ( using AlertController ) to prevent the user from changing his current tab unless he confirms his choice. Is this possible in Ionic ?
I’ve tried showing a confirmation message when tab tab has been changing. However, I couldn’t prevent the new tab from showing up.

Thank you.