I am using AngularStrap checkbox button where checkbox items come from server. So, I am trying to use ng-repeat
, but I am not able to see the values of the item selected. Please see the plunker where I have 3 types of checkboxes in it -
ng-repeat
. It does not reflect selected object values. Please help me to fix #2 above where I am using ng-repeat
option.
Get rid of the extra tag around the button element:
http://plnkr.co/edit/jRIedNZdqZ4phdDk21Vw?p=preview
<div class="btn-group" bs-buttons-checkbox>
<button ng-repeat="item in items" type="button" class="btn" ng-model="selection.ids[item.id]">{{item.name}}</button>
</div>