Alexander Kundurdjiev Alexander Kundurdjiev - 9 months ago 22
AngularJS Question

pass input attribute data to other input function parameter - angular

Is it possible to pass ng-disabled data to other input function parameter:

<div ng-repeat="item in properties">
<input type="checkbox" ng-click="checkDisable(isDisable)">
<input type="checkbox" ng-disabled="properties[$index].isDisabled">

plunkr: here


Use the item value in the loop

<div ng-repeat="item in properties track by $index">
      <input type="checkbox" ng-click="checkDisable(item.isDisabled)">
       <input type="checkbox" ng-disabled="item.isDisabled">