【发布时间】:2019-12-04 05:23:16
【问题描述】:
<ui-select
ng-model="ruleSelected"
theme="bootstrap"
on-select="selectedItem($item)">
<ui-select-match>{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="o.name as o in rules | propsFilter: {name: $select.search}" position="down">
<div ng-bind-html="o.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
$scope.selectedItem = function(item) {
$scope.ruleSelected = item;
$scope.selected = item;
};
在下拉列表中选择值后设置$scope.ruleSelected 需要很长时间。有人可以帮帮我吗?
提前致谢
【问题讨论】:
标签: html angularjs dropdown ui-select