Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

how to get current value of chips autocomplete input ? #245

Closed di3orlive closed 7 years ago

di3orlive commented 7 years ago

Bug, feature request, or proposal:

feature request, or proposal

What is the expected behavior?

wanna get current value from autocomplete on keydown

What is the current behavior?

can't do this

What are the steps to reproduce?

open last version of demo

What is the use-case or motivation for changing an existing behavior?

need dynamically load data from server on word enter

Which versions of Angular, MD2, OS, browsers are affected?

last, last, win10, last chrome

Is there anything else we should know?

no

di3orlive commented 7 years ago

ok i found solution <md2-chips (keyup)="findUser($event)">

findUser(query) {
  this.search_word = query.srcElement.value;
}