Clear input fields when checkbox is checked
The simple approach is to use ngChange
directive on checkbox and set text input model to empty string if checkbox is checked. Something like this:
<input type="text" ng-model="data.test" ng-disabled="data.check">
<input type="checkbox" ng-model="data.check" value="one"
ng-change="data.test = data.check ? '' : data.test">
Demo: http://plnkr.co/edit/pKGui2LkP487jP0wOfHf?p=preview