mardi 20 décembre 2016

Check one checkbox should not select the whole checkbox group

Following is the code I am using to populate the checkbox list.

label class="checkbox-inline" ng-repeat="item in vm.ItemList track by item .id">

input type="checkbox" name ="item " ng-value="item .id" ng-model ="vm.selecteditem"



label

The above code selects all the items in ItemList. I need to select only one item from itemList. How do I do that?




Aucun commentaire:

Enregistrer un commentaire