THE SITUATION:
I have an angular app that sends emails.
There are three fields: Address - Subject - Text.
The address field is built using angular ui-select
The email address can be choosen from the list or it may be entered anew.
The problem is that i am not able to create a new entry.
In the documentation there is written that in order to enter a new value it can be used the attribute tagging.
But i don't why, is not working with me.
THE CODE:
(simple new tag add example)
<ui-select multiple tagging tagging-label="(custom 'new' label)" ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
<ui-select-choices repeat="color in availableColors | filter:$select.search">
{{color}}
</ui-select-choices>
</ui-select>
$scope.availableColors = ['Red','Green','Blue','Yellow','Magenta','Maroon','Umbra','Turquoise'];
$scope.multipleDemo = {};
$scope.multipleDemo.colors = ['Blue','Red'];
PLUNKER:
http://plnkr.co/edit/T55LeKK66Idb3lD8DDPz?p=preview
As you can see is not possible to insert a new value.
QUESTION:
How can i properly insert a new value in angular ui-select?