I am using ui-select for fetching data from server & populate it in drop down (search & select). I created a plunker for you.
<ui-select ng-model="country.selected" theme="selectize" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="country in countries | filter: $select.search">
<span ng-bind-html="country.name | highlight: $select.search"></span>
<small ng-bind-html="country.code | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
Once I selected any value from selector, I can change further. But not able to remove. How can I do this?
You should use an other theme like
select2
to make this work. I upgraded your PLUNKER to show how this could work. Addallow-clear="true"
intoui-select-match
and set theme totheme="select2"
to allow unselect an item.