I'm using angular ui.select and i'm having trouble with binding the selected value to a model. I am trying to set a variable of an object using ui.select ng-model="data"
. But for some reason it will not selected value will not bind to the model. This is the code I am using:
<ui-select ng-model="data" ng-disabled="disabled" theme='select2' style="min-width: 300px;" title="some title">
<ui-select-match placeholder="Select a credit status in the list">[[ $select.selected.variable ]]</ui-select-match>
<ui-select-choices repeat="options in options | filter: $select.search">
<p>[[ options.variable ]]</p>
</ui-select-choices>
</ui-select>
Using this does not bind the selected value to the model in my case. I then used $parent.data
which does work but when I use multiple ui-selects only one is able to work at a time.
There must be something I am doing wrong any help is appreciated.