阅读背景:

make auto-complete searchable下拉列表不希望在搜索时单击时显示列表

来源:互联网 

fiddle link

<div ng-app="app" ng-controller="myCtrl as vm">
 <ui-select tagging ng-model="vm.selected" theme="bootstrap">
  <ui-select-match p laceholder="Pick one...">{{$select.selected.value}}</ui-select-match>
    <ui-select-choices repeat="val in vm.values | filter: $select.search">
      <span ng-bind-html="val.value | highlight: $select.search"></span>
    </ui-select-choices>
 </ui-select>
</div>


var app = angular.module('app', ['ui.select', 'ngSanitize']);

app.controller("myCtrl", function() {
 vm = this;
 vm.isLoaded = false;
 vm.values = [{
  'key': 22,
  'value': 'Kevin'
 }, {
  'key': 24,
  'value': 'Fiona'
 }];
 vm.selected;
});
<div ng-app="app" ng-controller="



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: