Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
can you stop a view change happening in ionic when the ionicview beforeleave ev
can you stop a view change happening in ionic when the ionicview beforeleave ev ¬†using -'angularjs,ionic-framework'
I have an ionic view with a form in it. When someone tries to leave the view (in my case by selecting a menu item) the $ionicView.beforeLeave event fires and I capture it in my controller. So far so good.
In the $ionicView.beforeLeave event handler I will check the data in the form and submit it to the server. If the data is not correct I want to tell the user and stop them leaving the form view so they have to correct the error.
I can't work out how to stop the change of view happening so the user stays on my form view.
Is there a way to do this? If so how?
Oct 13, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please