I'm using https://github.com/angular-ui/ui-select and I want to do some event or an option that will allow me to call an event (opening a modal) when no result is found while using a filter.
<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>