【发布时间】:2018-11-08 10:34:08
【问题描述】:
我有一个表中的数组列表,我想将输入值与数组 ID 列表分别绑定到数组这里我的 html <tr *ngFor="let entressEmployee of EntressForEmployee; let e = index ">
<td style="text-align:left">{{entressEmployee.Description}}</td>
<td> <input type="number" class="form-control" placeholder="Value"> </td></tr> 和我的 EntressForEmployee 数组看起来像这样
我想将 ID 与我的输入值绑定。
【问题讨论】:
-
你可以使用[(ngModel)]="entressEmployee.id"
-
如何将另一个数组的输入值绑定在一起?
-
标签: angular data-binding