title: Angular, get ViewChild / ViewContainerRef from dynamic created Component
body: <p>is there a way to get the ViewContainerRef from a dynamic created component?
  My dynamic created component has an ngContent element inside, which i want to fill after the dynamic creation.</p>
  
  <pre><code>export class Example {
  
    @ViewChild('content', { read: ViewContainerRef }) //normal way
    content: ViewContainerRef;
  
  ...
  
    ngAfterViewInit(){
      let box1=this.content.createComponent(this.boxFactory);
      box1.instance.title="Dynamic (1)";
      // HERE: the box1 has a ng-content area which i want to fill.
    }
  
  }
  </code></pre>
  
  <p>I think about some manual way to resolve the ViewChild instead of using the decorators. Some Ideas?</p>
  
  <p>Thanks a lot.</p>