title: How do I get experimental ngTemplateOutlet to work?
body: <p>I am trying to build a listing component in Angular2 that takes the items, the columns and the templates for the fields of the items from the user of the component. So I am trying to use <code>ngTemplateOutlet</code> and <code>ngOutletContext</code> (which I have read are experimental). But I cannot get it to work.</p>
  <p>Here is a simplified component to demonstrate what I am trying to do:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div *ngFor=&quot;let item of items&gt;
    &lt;span *ngFor=&quot;let column of columns&gt;
      &lt;template [ngOutletContext]=&quot;{ item: item }&quot; 
                [ngTemplateOutlet]=&quot;column.templateRef&quot;&gt;&lt;/template&gt;
    &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Here is the usage of the component:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;my-component [items]=&quot;cars&quot; [columns]=&quot;carColumns&quot;&gt;
    &lt;template #model&gt;{{item.model}}&lt;/template&gt;
    &lt;template #color&gt;{{item.color}}&lt;/template&gt;
    &lt;template #gearbox&gt;{{item.gearbox}}&lt;/template&gt;
  &lt;/my-component&gt;
  </code></pre>
  <p>And here is example data:</p>
  <pre class="lang-js prettyprint-override"><code>cars = [
    { model: &quot;volvo&quot;, color: &quot;blue&quot;, gearbox: &quot;manual&quot; },
    { model: &quot;volvo&quot;, color: &quot;yellow&quot;, gearbox: &quot;manual&quot; },
    { model: &quot;ford&quot;, color: &quot;blue&quot;, gearbox: &quot;automatic&quot; },
    { model: &quot;mercedes&quot;, color: &quot;silver&quot;, gearbox: &quot;automatic&quot; }
  ];
  
  carColumns = [
    { templateRef: &quot;model&quot; },
    { templateRef: &quot;color&quot; },
    { templateRef: &quot;gearbox&quot; }
  ];
  </code></pre>
  <p>Here is a plunker reproducing the issue after adapting the code according to Günters comment:
  <a href="https://plnkr.co/edit/jB6ueHyEKOjpFZjxpWEv?p=preview" rel="nofollow noreferrer">https://plnkr.co/edit/jB6ueHyEKOjpFZjxpWEv?p=preview</a></p>