How to use dynamic variables in ngModel?
I am trying to use the code below but the following error appears:
<div *ngFor="let num of ['1','2','3']; let i=index">
<input id="qtd{{num}}" [(ngModel)]="qtd{{num}}" type="text"/>
</div>
Erro
Unhandled Promise rejection: Template parse errors:
Parser Error: Got interpolation ({{}})