I am using ui-select (version - 0.11.2), the following code HTML:
<ui-select ng-model="staff.selected" ng-disabled="disabled" reset-search-input="false" multiple>
<ui-select-match placeholder="Staff">{{$item.name}}</ui-select-match>
<ui-select-choices repeat="staff in staffs" refresh="refreshStaff($select.search)" refresh-delay="0">
<div ng-bind-html="name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
Here I use multipleto select several options. After searching for a query by type, it is displayed. How can I not show it?
JS code
$scope.refreshStaff = function(name) {
Staffs.query($scope.queryCriteria).then(function(response) {
return response.data;
});
}
user4870812
source
share