この plunkには、名前を含むリストを持つ ui-select があります。ユーザーがリストの名前またはリストにない名前を入力できるようにする必要があります。
リストにない名前を入力しようとすると、ui-select はその値をリスト内の最も近い値に自動的に置き換えます。
リストにない値を取得する方法はありますか?
HTML
<ui-select ng-model="ctrl.person.selected" theme="bootstrap">
<ui-select-match>{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in ctrl.people | filter: $select.search">
<div ng-bind-html="item.name | highlight: $select.search"></div>
<small ng-bind-html="item.email | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>