material
material copied to clipboard
md-chips/md-contact-chips allow asynchronous search
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);
}
It actually looks like it works, minus the issue as outlined in #4431. Perhaps it would be good to add it to the documentation?
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 :-)
+1