-
0 votesanswersviews
如何使用ngModel从mat-select / mat-option中选择ID
我有一个显示项目列表的表 . 此表使用ngModel进行数据绑定,因此我可以在同一页面上编辑表单中的项目 . 表单有一个动态填充的mat-select组件 . table : <mat-table #table [dataSource]="trades" matSort> ..... ..... <ng-container matCol... -
0 votesanswersviews
Angular5中的DropDown选择 - 使用NgModel的绑定对象不会更新选择值
// html code <select class="form-control form-control-primary" (change)="changeValue(data)" [(ngModel)]="data" name="list" id="sele...