Forms 在Angular2中实现多个单元格输入时出现问题

Forms 在Angular2中实现多个单元格输入时出现问题,forms,angular,input,Forms,Angular,Input,我有一个表格,每个td都有一个输入(如电子表格) 我的html模板的代码如下所示: <tr *ngFor="let project of projects" (click)="onSelect(project)"> <th class="panel fixed">{{project.id}}</th> <th class="panel fixed">{{project.name}}</th> <td *n

我有一个表格,每个td都有一个输入(如电子表格)

我的html模板的代码如下所示:

<tr *ngFor="let project of projects" (click)="onSelect(project)">
    <th class="panel fixed">{{project.id}}</th>
    <th class="panel fixed">{{project.name}}</th>

    <td *ngFor="let load of projectLoads[project.code]; let d=index" class="cell panel scrolling">
        <input class="load"  [(ngModel)]="projectLoads[project.code][d]" title="{{project.code+' . '+d}}" />
    </td>
…

{{project.id}
{{project.name}
…
当我用一个数字(例如1)填充一个单元格时,该数字会在下一个单元格中重复

它是怎么来的


(请注意,我当前的代码中没有ngForm。)

尝试在输入中这样添加name属性:
name=“load{{{{d}”
没有任何区别@dev_in_progress尝试在输入中这样添加name属性:
name=“load{{d}”
没有区别@dev_in_progress