update multiple rows of table in angular 2
<p>I am trying to insert some data against each row with one submit button. So I included a table inside a form tag and implemented like this:</p>

<pre><code>&lt;form&gt;
&lt;table&gt;
    &lt;tr *ngFor="let item of list;let index = index&gt;
      &lt;td&gt;{{item.id}}&lt;/td&gt;
      &lt;td&gt;{{item.name}}&lt;/td&gt;
      &lt;td&gt;&lt;input [(ngModel)]="model[index]" id="{{item.id}}"&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
 &lt;button type="submit"&gt;Proceed&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p>what I want is to insert data inside input tag against that 'item.id' on submit button but i am not able to retrieve 'id' with submit button. What I am getting is array of input values without i.e [75, 76] considering i have to update two rows. So how could i retrieve id's against each row or update data on each entry.</p>