title: Query text of ng-Container with @ContentChild
body: <p>I want to use the text which is passed to the following component via <code>ng-content</code>.</p>
  
  
  
  <pre><code>@Component({
    selector: 'child-component',
    template: '&lt;ng-content&gt;&lt;/ng-content&gt;'
  })
  export class ChildComponent implements AfterContentInit {
    @ContentChild('value') text: ElementRef;
    ngAfterContentInit(): void {
      // This does not work
      let value = this.text.nativeElement.nextSibling.textContent as string;
    }
  }
  </code></pre>
  
  <p>The parent component includes it like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;child-component&gt;
    &lt;ng-container #value&gt;My Content&lt;/ng-container&gt;
  &lt;/child-component&gt;
  </code></pre>
  
  <p>How can I get the string "My Content" from the ContentChild?</p>