I am tying to filter my table by using checkboxes, I succeed doning this with radio buttons with the following code:
<label class="checkbox-inline" >
<input type="radio" ng-model="term" value="HT1"/> HT1
<input type="radio" ng-model="term" value="HT2"/> HT2
<input type="radio" ng-model="term" value="VT1"/> VT1
<input type="radio" ng-model="term" value="VT2"/> VT2
</label>
<tr ng-repeat="course in vm.courses|filter:term">
I realize that the same no not work when using checkboxes because all checkboxes gets the same ng-model. But how do I do this with checkboxes? I would like to use javascript and not angular if I have to use a script
Aucun commentaire:
Enregistrer un commentaire