Skip to content

Instantly share code, notes, and snippets.

@xudejian
Created January 10, 2014 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xudejian/8348248 to your computer and use it in GitHub Desktop.
Save xudejian/8348248 to your computer and use it in GitHub Desktop.
select2 去掉搜索框
<div>
<select ui-select2='select2Options' ng-model="select2" data-placeholder="Pick a number">
<option value=""></option>
<option value="one">First</option>
<option value="two">Second</option>
<option value="three">Third</option>
</select>
</div>
'use strict';
angular.module('select2App')
.controller('MainCtrl', function ($scope) {
$scope.select2Options = {
minimumResultsForSearch: -1
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment