javascript - pass input attribute data to other input function parameter - angular -
is possible pass ng-disabled data 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"> </div>
plunkr: here
use item value in loop
<div ng-repeat="item in properties track $index"> <input type="checkbox" ng-click="checkdisable(item.isdisabled)"> <input type="checkbox" ng-disabled="item.isdisabled"> </div>
Comments
Post a Comment