title: Angular ngif template ref
body: <p>I have a ngif - else condition to display either <code>#input1</code> or <code>#input2</code>.</p>
  
  <p>Then a set of fields <code>#fieldset</code> wrapped in a ngif with the condition that either <code>#input1</code> or  <code>#input2</code> have a value using template-references.</p>
  
  <p>This fails as <a href="https://github.com/angular/angular/issues/19316" rel="nofollow noreferrer">ng-if creates its own subtemplate</a>, "hiding" <code>#input1</code> and <code>#input2</code>.</p>
  
  <p>I don't want to repeat <code>#fieldset</code> inside the if and else block.
  Can I do this without creating a new component containing the fields in <code>#fieldset</code>?</p>