Angular 1.4Angular ng - 用复选框重复存储选项
我有一个简单的ng-repeat
带复选框。目标是将customer.Id
添加到$scope.holdsChosenCustomerIds
中。我需要$scope.holdsChosenCustomerIds
像[3,78445789]这样的哑数组,基本上无论用户选择什么。
$scope.holdsChosenCustomerIds= [];
<div ng-repeat="customer in customers">
<input type='checkbox' ng-model="holdsChosenCustomerIds[$index]==???" ????????? />
</div>
停留在这一点上