@rfarko wrote:
This a very straightforward use case and I’m sure many Ionic developers would face it sooner or later but there is no sample or example about this.
Basically, I need to show an alert (using AlertController) to the user when taps on the Back button (or any other way to leave the current page) and ask for confirmation when there is unsaved data on the page.
I’m trying to use the result of AlertController’s buttons selection in ionViewCanLeave method but can’t make it work. Has anybody solved this problem already?
Posts: 3
Participants: 3