This repository was archived by the owner on Oct 2, 2019. It is now read-only.
-
Couldn't load subscription status.
- Fork 1.8k
ui select no choice
David Cain edited this page May 28, 2016
·
6 revisions
This directive was created in PR #1101 and included in v. 0.17.1
The ui-select-no-choice directive must be an immediate child of the ui-select directive. It displays its contents when no matches are found.
Example usage:
<ui-select ng-model="model.selected">
<ui-select-match placeholder="Pick one...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="person in people | filter: $select.search track by person.name">
<div ng-bind-html="person.name | highlight: $select.search"></div>
</ui-select-choices>
<ui-select-no-choice>
Dang! We couldn't find any choices...
</ui-select-no-choice>
</ui-select>