How do i capture when back button is pressed?
THis back button is automatically shown when navigated to child view.
I have a form on this page, and want to save the form when back button is pressed (physical button or even the back icon shown on the left top corner).
I don’t want to save the object when any form field is changed, so was thinking to save the form when back button is pressed. (not sure whether this is the right way to save the changed form in angularjs though…).
If someone can point me a better way to save the form when any changes from user are done, please point me the right direction (I don’t want to put “submit” button on the view for user to click — I want implicit save when done).
Thanks! Ionic rocks!