indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

Can we use angular filter with list specified in options attribute #51

Closed kanikagupta13 closed 8 years ago

kanikagupta13 commented 8 years ago

Hi,

In angular, for lists there are various filters which can be applied to the list in html. One example of it is orderBy which sorts the list and as a result we don't have to apply this filter in the backend code.

Is there any way to include the angular filters or custom filters written in options of angular selector?

indrimuska commented 8 years ago

Nope, there's no way to apply angular's filters, you can just create a kind of workaround like this: http://plnkr.co/edit/FtPBzwexMN4EhW4QqxKp?p=preview

kanikagupta13 commented 8 years ago

hi @indrimuska . Thank you for the workaround. But it doesn't completely solve the issue with my application. Is there any future scope of handling these filters within options?

indrimuska commented 8 years ago

Yes, of course. I don't have the time to implement it now due to my busy schedule, but I will appreciate any PR or help from anyone! :) Let's move this thread to #25.

kanikagupta13 commented 8 years ago

Ok. Thank you. :)