I am using the following code to reset a form field using a checkbox with AngularJS.
<input type="text" ng-model="data.test" ng-disabled="data.check">
<input type="checkbox"
ng-change="data.test = data.check ? '' : data.test"
ng-model="data.check"
value="one">
How would I use this code to reset multiple form fields?
Thanks,
John