oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

How to detect when no result is found. #358

Open bnlambert opened 6 years ago

bnlambert commented 6 years ago

Hi Thank you for the great tool. I wish to be able to detect when no result is found in the datasource. If the input is not listed in the datasource an event should be triggered at the same that the form field displays the dropdown with thw text 'No results found' .

Please how can I get this done?

oferh commented 6 years ago

Hi,

There's no event for no result found, but it may be done by implementing a custom data provider. What is your data source?

bnlambert commented 6 years ago

My datasource is a list of objects, I am using the list of colors in the example provided in the doc