If user tries to leave unsaved edited form, a message box pop-up
\"This page is asking you to confirm that you want to leave - data you have entered may not be saved. Le
I think you would need to use $window.alert or $window.confirm or beforeroutechange
$window.alert
$window.confirm
Angular documentation