axel-zarate / js-custom-select

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

How to Add ng-click event with Search text box #48

Open santosh-k1 opened 7 years ago

santosh-k1 commented 7 years ago

I try to use this directive with huge data.. than there are a lot of issue i faced .. so can we filter the list with search click event.

Thanks

axel-zarate commented 7 years ago

If you're using large arrays, the best option would be to do the filtering on the server side and use an async function (a promise) as the source. Something like custom-select="a for a in searchAsync($searchTerm)".