答案 0 :(得分:1)
<select id="select" (change)="selectInputUpdate($event.target.value)">
<option *ngFor="let option of filteredOptions" value="{{option .Id}}" class="select-option"></option>
</select>
或
<select id="select" [(ngModel)]="selectedInput">
<option *ngFor="let option of filteredOptions" [ngValue]="option" class="select-option"></option>
</select>