Angularjs $scope With Parameter
I'm new in Angular and I can't achieve something really simple, lets say we have several checkbox input loops followed by an input text field like this:
Solution 1:
You can use ng-model
with the checkbox, then use ng-disabled
to listen to that model belonging to the checkboxes.
<input type="checkbox" value="Other" ng-model="myCheckboxes['other']" />
<input type="text" ng-disabled="myCheckboxes['other']" />
Post a Comment for "Angularjs $scope With Parameter"