Hi,
I'm working on a application that has various forms and I want to make sure that the user saves the details added to a form before moving to a new view.
I was thinking of adding a flag to the controller called 'formStatus' and have that set to 'unsaved' until the user clicks the save button. Is there a way in Angular to check if the has requested that a new view is to be loaded? If so I was thinking of using this of capturing a view change request to check the value of the formStatus and if it still unsaved display a warning messsage to the user (and stopping the view change while that formStatus is still unsaved).
Is this possible or is there another/better way?
Stephen