Angular 2 - Dynamic Variables in ngModel
<p>How to use dynamic variables in ngModel?</p>

<p>I am trying to use the code below but the following error appears:</p>

<pre><code>&lt;div *ngFor="let num of ['1','2','3']; let i=index"&gt;
    &lt;input id="qtd{{num}}" [(ngModel)]="qtd{{num}}" type="text"/&gt;
&lt;/div&gt;
</code></pre>

<p><strong>Erro</strong></p>

<p><code>Unhandled Promise rejection: Template parse errors:
Parser Error: Got interpolation ({{}})</code></p>