dimanche 18 octobre 2015

Retain checkbox state in angular when the scope changes

below is a code snippet

<tr ng-repeat="data in ioStatusData">
    <td><input type="checkbox"</td>
    <td>{{data.IOStatusName}}</td>
    <td>{{data.IOLabel}}</td>
    <td>{{data.IOStatus}}</td>
    <td>{{data.TestResult}}</td>
</tr>

scope.ioStatusData keeps updating every 5 secs. i want to retain checkbox state(checked or unchecked) even when scope.ioStatusData changes




Aucun commentaire:

Enregistrer un commentaire