title: Angular CDK Portal not being created by @ViewChild?
body: <p><a href="https://stackblitz.com/edit/angular-cdk-portal-demo?file=src%2Fapp%2Ftoolbar-actions.component.ts" rel="nofollow noreferrer">This demo</a> attempts to create a CDK Portal like this:</p>
  
  <pre><code>@ViewChild(CdkPortal) portal;
  </code></pre>
  
  <p>However the portal is undefined in the <code>ngAfterViewInit</code> Method:</p>
  
  <pre><code>  ngAfterViewInit(): void {
      // Create a portalHost from a DOM element
      this.portalHost = new DomPortalHost(
        document.querySelector('#actions'),
        this.componentFactoryResolver,
        this.appRef,
        this.injector
      );
  
      console.log("THE PORTAL IS: ", this.portal)
  
  </code></pre>
  
  <p>Any ideas?</p>