<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;
};
it takes much time to set $scope.ruleSelected after selecting the value in the dropdown. Can somebody help me out?
Thanks in advance