私は ui-select(version - 0.11.2) を使用してい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>
ここではmultiple
、複数のオプションを選択するために使用しています。タイプでクエリを検索した後、表示されたままです。どうしてそれを見せてはいけないのですか?
JS
コード
$scope.refreshStaff = function(name) {
Staffs.query($scope.queryCriteria).then(function(response) {
return response.data;
});
}