Angular - How to get input value at ngFor loop with one way binding
问题 Can you give me a way to get input value at ngFor loop with one way binding? <div *ngFor="let d of dataList"> <input #inputValue type="text" [ngValue]="d.value"> <button *ngIf="!d.open" (click)="d.open = true">change</button> <button *ngIf="d.open" (click)="save(d.id, NEWVALUE); d.open = false;">save</button> <button *ngIf="d.open" (click)="d.open = false">cancel</button> </div>` How can I set NEWVALUE? with two-way binding is easy. but after click cancel, value already changed as I don't