mercredi 21 octobre 2015

How to bind a single checkbox value from a table in ng-repeat?

I have have service table in database with 5 rows and I'm displaying it through ng-repeat. I want to select only one checkbox value

<tbody>
     <tr data-ng-repeat="serviceTable in dataTable ">  
        <td> {{ serviceTable.serviceId }} </td>
        <td> {{ serviceTable.serviceName }} </td>
        <td> {{ serviceTable. amount }} </td>
        <td><input type="checkbox" ng-model="?????"></td>
     </tr>
</tbody>

How do I bind only one value in ng-model???




Aucun commentaire:

Enregistrer un commentaire