How to clear the selected value in angular-ui select.
I want something like this
Asked
Active
Viewed 1.4k times
11

Kalhan.Toress
- 21,683
- 8
- 68
- 92
-
Works for me. http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview – PSL Oct 08 '14 at 17:09
-
thanks for the reply. but I want something like in the picture attached. – Kalhan.Toress Oct 08 '14 at 17:14
-
I tried this one http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview – Kalhan.Toress Oct 09 '14 at 04:01
-
I've got similar problem. I have exactly same code as in above plnkr site, but the clear button does not show up. I'm using same version of select.js. – Filip Witkowski Mar 07 '16 at 23:15
1 Answers
24
You should define it in select-match
<ui-select-match allow-clear="true" placeholder="Select something">
{{$select.selected.name}}
</ui-select-match>

Artyom Trityak
- 647
- 6
- 17