我正在使用https://github.com/angular-ui/ui-select,我想要做一些事件或一個選項,當我使用過濾器時沒有找到結果時,我可以調用一個事件(打開模式)。ui-select no result event
<ui-select ng-model="SelectedCustomer.selected" theme="select2">
<ui-select-match placeholder="Enter Customer">
{{$select.selected.NAME}}
</ui-select-match>
<ui-select-choices repeat="customer in Customers | filter: $select.search">
<div ng-bind-html="customer.NAME | highlight: $select.search"></div>
</ui-select-choices>
http://stackoverflow.com/questions/14615495/angularjs-placeholder-for-empty-result-from-filter –