Can't provide array as data source
lakehouseru opened this issue · 1 comments
lakehouseru commented
There's a statement in a docs
- A simple function that returns an Array of items
But there's no example of code explaining how to do it. Can anyone give an example code?
As I can see [dataProvider]="only Provider Class here" can receive only Service inherited from AutoCompleteService.
kadoshms commented
You can simply create a function that returns an array, and pass it as a dataProvider