I have an app with a lot of settings in long form pages. You are expected to go to the pages to view the current settings, or to update them.
I would like to make it so that the update button is only enabled if someone actually changes the current inputs.
My naive approach would be to add an ng-change attribute to every input that sets the enableButton flag
<form name='form' ng-submit=submit()>
<input type=sometype ng-model='something1' ng-change=formChanged=true></input>
...
<input ng-model='somethingN' ng-change=formChanged=true></input>
<button ng-disabled=!formChanged type=submit />
</form>
but this seems tedious and repetitive (we have a lot of options), and was hoping for something simple (something like form.$hasChanged...)