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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -