如何使用"MAT_AUTOCOMPLETE_DEFAULT_OPTIONS“注入标记全局配置是否为angular material https://material.angular.io/components/autocomplete/api#MatAutocomplete中的自动完成组件突出显示面板的第一个元素
我正在WebAPI中使用Angular4 Material Design -当用户在(Material Auto Complete)中输入无效值时,我正试图显示一条验证消息- "No matches found“。
我尝试过一些基于谷歌搜索的东西:--
下面是我目前的实现:
HTML
<div class="form-group spaces" style="width: 30%">
<mat-form-field>
<input [errorStateMatcher]="myEr
HTML
<mat-form-field class="example-chip-list">
<mat-chip-list #chipList aria-label="Fruit selection">
<mat-chip
*ngFor="let fruit of fruits"
[selectable]="selectable"
[removable]="removable"
(removed)="remove(f