material icon indicating copy to clipboard operation
material copied to clipboard

md-chips/md-contact-chips allow asynchronous search

Open ghost opened this issue 11 years ago • 3 comments

Request for a feature which allows you to return an array or a promise of array when using the search feature in md-chips/md-contact-chips.

E.g.

<md-contact-chips
    ...
    md-contacts="MyController.searchUsers($query)"
    ...
</md-contact-chips>
public searchUsers(query:string) {

    return this.usersService.query(query)
        .then((data) => data.users);

}

ghost avatar Sep 16 '15 05:09 ghost

It actually looks like it works, minus the issue as outlined in #4431. Perhaps it would be good to add it to the documentation?

ghost avatar Sep 16 '15 05:09 ghost

I am bumping this back to a later release (along with a few other doc changes). If someone wants to submit a PR/demo in the meantime, it would be appreciated :-)

topherfangio avatar Nov 03 '15 05:11 topherfangio

+1

KalpanaAr avatar Feb 19 '16 23:02 KalpanaAr