title: Angular - getting the handle to the ng-content component in the parent
body: <p>I have a higher level, general purpose component, the child component will implement an interface.</p>
  
  <p>I need to get a handle to the child component into the higher level, parent component.  In the following snippet I've tried to get the #contentComponent referenced into the parent component (your looking at the html of the parent component) using a @viewChild to null avail.</p>
  
  <p>I've also tried using an elementRef on the div around it the ng-content and looking through the children. I find the ng-content's component div but I don't know how to turn this into reference of the component.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;div style="width: 100%"&gt;
    &lt;paper-card [heading]="documentIndex.name" class="mix-browser-container"&gt;
      &lt;div&gt;
        &lt;ng-content #contentComponent&gt;&lt;/ng-content&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;paginator #paginator [documentIndex]="documentIndex"&gt;&lt;/paginator&gt;
      &lt;/div&gt;
    &lt;/paper-card&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>