【发布时间】:2017-05-05 19:17:33
【问题描述】:
以下是我用来填充复选框列表的代码。
<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" />{{item.name}}
</label>
上面的代码选择了ItemList中的所有项目。我只需要从 itemList 中选择一项。我该怎么做?
【问题讨论】:
-
什么?............
-
你有什么问题?
-
请编辑您的问题
标签: angularjs typescript checkbox