axel-zarate / js-custom-select

Custom auto-complete select box for AngularJS and Bootstrap
MIT License
68 stars 59 forks source link

Empty results using $http promise #30

Open ivolvicente opened 8 years ago

ivolvicente commented 8 years ago

Hello, i'm having same trooble with server-side filtering, because when js-custom-select waits for a promise response, in angularjs, it return an object where we need the data array to be used as the source.

response

I have made a small fix, but you can make a better solution, and make avaible with bower LINE: 304 (inside getMatches function) if (angular.isObject(matches) && matches.status === 200) { matches = matches.data; }

I'm doing samething wrong? Thanks

elguesmi commented 8 years ago

thank you that's works fine please add it to current version :)