I'm using ui-select (https://github.com/angular-ui/ui-select).
ui-select support us to Search, Select, and Multi-select. But how can I get the value users typed in ui-select search box? I want to display an error message if the value users typed is not correct.
Example: In this plunker below with Select2 theme, when the user type: 'asdasd' (this text does not match with any results) I want display a message "Do not find any results!" by assigning to 'scope.person.selected'
plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview
How can I do that?
Thanks so much!
$select.search
in<ui-select-choices refresh="$ctrl.handleChange($select.search)" ...
is the entered value. – Marlenamarlene