mardi 13 décembre 2016

multiple ng-repeat and checkbox in last of them

If I have multiple ng-repeat and checkbox in last of them, all checkboxes are checked if I push one of them. How to resolve the problem?

Example:

<div ng-repeat="(ctIndex, ct) in cts">
  <div ng-repeat="cs in ct track by $index"> 
     <div ng-repeat="(tId, task) in cs">
        <input type="checkbox" id="taskChecked__" data-ng-change="checkTask(ctIndex, $index, tId)" name="task__" data-ng-model="task.selected">
     </div>
  </div>
</div>

Aucun commentaire:

Enregistrer un commentaire