0

我在 mat-select 中列出了一个值列表。这是我的代码;

<div class="row">
                                    <div class="col-md-1">
                                        <mat-form-field class="mat-form-field-fluid">
                                            <mat-select placeholder="select" formControlName="myList" id="myList">
                                                <ngx-mat-select-search [formControl]="frmControl" #fltr >
                                                </ngx-mat-select-search>
                                                <mat-option id="myListValue" [value]="item.code"  *ngFor="let item of ListOfSelect | filterByProperty: ['descp',filter.value];">{{ item.description}}
                                                </mat-option>
                                            </mat-select>
                                        </mat-form-field> 
                                    </div>

我想向此列表添加一个新值并将其设为选定值。

我怎样才能做到这一点?

4

0 回答 0