-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Material async with autocomplete #903
Comments
@iceman91176 Hi!
At the moment it's up to you to implement filtering by using |
hi @udos86 Merry christmas to Nürnberg |
Yep, that you should do it. Merry christmas to Wiesbaden |
hi Udo, looking into this for a project currently going on, I have faced two issues :
your code will always display [object Object]
in order to address this and allow any kind of object as a list item, it is probably easier to let each developper create it own mat-autocomplete using ng-template and additional such as :
|
Hi again, Looking into your code I think the problem might be in this.list$ = (list as Observable<any[]>).pipe(tap(list => this._list = list)); I think this statement should be : this.list$ = (list as Observable<any[]>).pipe(map(list => { |
Hi Udo, Any feedback on my remarks above ? I need to make a décision whether or not I implement a circumvention for this or if a change can be made to the library to address the two points above. thanks for your reply. |
I'm submitting a
I'm using
Description
I am looking for a solution that provides autocompletion for async datasources.
Let's say i have a webservice that can be queried for contact-objects. To reduce the amount of Objects that is retrieved/displayed, a minimum of X characters has to be entered. The characters are transmitted as a query-string to the webservices and just returns the matches.
I am able to bind the webservice to the model.list property like this
model.list = searchService.search("http://apis.****/api/persons","");
but
Seems to be related to #815 #829 #878
How can we achieve that ? With a custom component ?
Thank you
The text was updated successfully, but these errors were encountered: