I am using angular UI select.
https://github.com/angular-ui/ui-select
I looked around the demo's available at this plunkr
I want to fetch data from a remote service. Every time user types something into the text field. I want to fetch data from remote service with results filtered based on input value.
I have written a web service and web service is working fine.
How can I use angular ui select to fetch data from remote service ?
Currently I am following simple example from demo
<ui-select multiple ng-model="multipleDemo.colors" theme="select2" 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>
availableColors is a predefined array. I don't want to define data array beforehand.
I have been looking around the Internet for any possible documentation or tutorial but not able to find anything useful.