ng2-ui / auto-complete

Angular Auto Complete component and directive
http://ng2-ui.github.io/auto-complete/
MIT License
280 stars 124 forks source link

Perform 'start-with' instead of 'contains' search #197

Closed ancabica closed 6 years ago

ancabica commented 7 years ago

Hello,

Is there a way of filtering the suggestion list using 'start-with' the characters the user just entered instead of 'contains'?

For example, in your continent example, I would like to write 'a' and only the continents starting with 'a' to be displayed in the selection list. In this case 'North America' would not remain an option in the list.

Thank you, Anca

allenhwkim commented 7 years ago

Please use Observable source for customized search.

smitthakkar96 commented 7 years ago

I didn't quite get what are you trying to convey, if I am not wrong there is no way to simply say call this function when someone performs the search if there is then it is not documented properly.