title: How to call ng-template by variable?
body: <p>I checked:
  <a href="https://stackoverflow.com/questions/42567236/viewchildren-for-ng-template">ViewChildren for ng-template</a>
  and 
  <a href="https://stackoverflow.com/questions/40165294/access-multiple-viewchildren-using-viewchild/40165639#40165639">Access multiple viewchildren using @viewchild</a></p>
  
  <p>But I am not able to call my template via the value of a variable...</p>
  
  <p>So my template is like this:</p>
  
  <pre><code>&lt;ng-container *ngFor="let feature of Object.values(features)"&gt;
    &lt;ng-container *ngTemplateOutlet="templates[feature]"&gt;&lt;/ng-container&gt;
  &lt;/ng-container&gt;
  
  &lt;ng-template #myFeature&gt;
    Nothing to see here
  &lt;/ng-template&gt;
  
  &lt;ng-template #myOtherFeature&gt;
    Nothing to see here
  &lt;/ng-template&gt;
  </code></pre>
  
  <p><code>features</code> is an enum with matching values to my templates names... then in my class, I tried to grab all the <code>ViewChildren</code> like this:</p>
  
  <pre><code>export class SomeClass {
     @ViewChildren(TemplateRef) templates: QueryList&lt;TemplateRef&lt;any&gt;&gt;;
  }
  </code></pre>
  
  <p>So the idea is that, i thought I should be able to reference the correct template by doing <code>templates[feature]</code> which should yield something like <code>templates['myFeature']</code> and give me the right template... but is not.</p>
  
  <p>How do I archive this?</p>