Access @ViewChild template from ng-content : <p>Is it possible to use templates in combination with ng-content like described here: </p>

<p>app component: </p>

<pre><code>&lt;table-column&gt;
  &lt;template #template let-item="item"&gt;
    &lt;input type="text" [(ngModel)]="item.foo" /&gt;
  &lt;/template&gt;
&lt;/table-column&gt;
</code></pre>

<p>table-column component:</p>

<pre><code>@Component({
  selector: 'table-column',
  template: '&lt;ng-content&gt;&lt;/ng-content&gt;'
})
export class TableColumnComponent implements OnInit {
  @ViewChild('template') template;  

  ngOnInit() {
    console.log(this.template); // undefined
    // create column object with template and different metadata...
  });      
}
</code></pre>

<p><a href="https://plnkr.co/edit/x5ARRwpnJTfFAUr5Le5N?p=preview" rel="noreferrer">Plunker</a>?</p>

<p>The problem I get <code>undefined</code> using different life cycle hooks (ngOnInit, ngAfterViewInit)...</p>
