dimanche 26 juin 2016

Need to create unique checkboxes on the fly in angular

I have a json object what has rows of songs. I want to associate and manage a set of checkboxes along with each row in a table I am generating for this object. So far I have:

<tr ng-repeat="dataline in data | filter:query">
<td><input type="checkbox" ng-click="sheLikes(dataline.filename)"> 
<td><input type="checkbox" ng-click="heLikes(dataline.filename)">
<td></td><td></td>
<td></td>
</tr>

I want to be able to load a set of checks into the rows that aren't saved in the database that contains the music data. So I want each checkbox addressable. I assume I can do this with ng-model but I can't figure out how. Any advice would be appreciated....




Aucun commentaire:

Enregistrer un commentaire