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> 

plunker


Comments

Popular posts from this blog

javascript - Why Selenium can't find an element that is graphically visible -

android - Basic camera in app -

scala - Using the kronecker product on complex matrices with scalaNLP breeze -