2
剛剛切換到Angular 4和材料2自動完成onSelect()md選項不再工作,但我找不到任何文檔。什麼是修復?切換到Angular4,材料2自動完成onSelect()不起作用
<md-autocomplete #auto="mdAutocomplete" [displayWith]="displayText.bind(this)">
<md-option (onSelect)="selectItem(item)" *ngFor="let item of filteredItems | async" [value]="item">
{{ item[propertyName] }}
</md-option>
</md-autocomplete>
Corect,但開始小寫:'onSelectionChange' – Francesco