Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

ui select no choice

user378230 edited this page Apr 4, 2016 · 6 revisions

DOCS FOR PR #1011 (Currently merged into master but not released as of v0.16.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>

Clone this wiki locally