title: How to set dynamic #id(*ngFor) and obtain the value from it in Angular2?
body: <p>I have in my HTML:</p>
  
  <pre><code>&lt;tr *ngFor="let package of packages"&gt;
    &lt;td *ngFor="let coverage of coverages"&gt;
      &lt;input type="hidden" #dynamicID [value]="coverage.id"&gt;
      &lt;-- Here is one input, maybe put the identifier with the variable package --&gt;
      &lt;input #dynamicValue type="text" name=""&gt;
      &lt;-- Another input, maybe put the identifier with the variable package --&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;button type="button" (click)="setPackage(package.id, dynamicID.value, dynamicValue.value)"&gt;Guardar&lt;/button&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I need to obtain values from inputs in my function setPackage.
  If I put the same #id in the inputs, doesn't work. Always give me a error of can't obtain value from undefined.</p>