我尝试了其他解决方案,但失败了。我知道解决方案AngularJs,但无济于事
<tr *ngFor="let prod of product | async ; index as i; trackBy:trackByIndex">
<td scope="row">{{prod.name}}</td>
<td>{{prod.quantity}}</td>
<td>{{prod.price}}</td>
<td><input type="number" value="0" [(ngModel)]="order.quantity"><span style="margin-left: 10px;"></span> <button class="btn btn-success" (click)="add(i, $index)">Add</button></td>
</tr>
更改输入时,所有其他输入也会由于绑定而更改。有解决办法吗?