【发布时间】:2016-11-03 09:50:32
【问题描述】:
我正在使用ui-select如下。
<ui-select id="ItemId" ng-model="ctrl.ItemId" theme="bootstrap"
ng-disabled="ctrl.DownDisabled" required>
<ui-select-match placeholder={{ctrl.Placeholder}}>{{$select.selected.item}}
</ui-select-match>
<ui-select-choices
repeat="item in ctrl.owners.components">
<div ng-bind-html="item | highlight: $select.search"></div>
</ui-select-choices>
<ui-select-no-choice>
No features were found
</ui-select-no-choice>
</ui-select>
它遍历的 JSON 是
ctrl.owners = {
value : 123,
teamName : ABC,
components : [a,b,c]
};
但 UI 下拉菜单显示“未找到任何功能”。什么问题。我的目标是在下拉列表中将components 显示为单独的选项。 AFAIK 这需要通过在 ui-select-choices 中使用嵌套重复以某种方式完成。我该怎么做?
【问题讨论】:
-
你能装个小家伙吗?
标签: javascript angularjs drop-down-menu ui-select angular-ui-select