title: Get value with #tag from input, when the input field might not exist
body: <p>I have a ngFor loop that fill a table for me. In this table, there can be tables containing more data.</p>
  
  <p>Some of the elements being filled have one mandatory set of input, from which I can already obtain the value like this:</p>
  
  <pre><code>&lt;table *ngIf="boolean"&gt;
  ...
      &lt;tr&gt;
          &lt;td&gt;&lt;input #textInput type=text value="{{defaultValue}}"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  ...
      &lt;button (click)="save1(stuff, textInput.value)"&gt;Save&lt;/button&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>However, in some case I have two set of input, and one or both can be present.</p>
  
  <pre><code>&lt;table  *ngIf="boolean"&gt;
  ...
      &lt;tr *ngIf="boolean2"&gt;
          &lt;td&gt;&lt;input #textInput type=text value="{{defaultValue}}"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr *ngIf="boolean3"&gt;
          &lt;td&gt;&lt;input #secondTextInput type=text value="{{defaultValue}}"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  ...
      &lt;button (click)="save2(stuff, textInput.value, secondTextInput.value)"&gt;Save&lt;/button&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I tried using the <code>?</code> in case the value doesn't exist but it doesn't work. So far I can only get <code>null</code> values. If I receive a null value if the field doesn't exist, this is not a problem, I'll just filter it. But even if both exists, I can't get any value from them.</p>
  
  <p>The second code gives me an error: </p>
  
  <blockquote>
    <p>_co.value is undefined</p>
  </blockquote>
  
  <p>Same thing if I replace one of the value with 0.</p>