allowClear="true" not works in angular-ui select

Kalhan.Toress picture Kalhan.Toress · Oct 8, 2014 · Viewed 13.9k times · Source

How to clear the selected value in angular-ui select. I want something like this enter image description here

Answer

Artyom Trityak picture Artyom Trityak · Jan 30, 2015

You should define it in select-match

<ui-select-match allow-clear="true" placeholder="Select something">   
    {{$select.selected.name}}
</ui-select-match>