Within this component demo I'm trying to grab the projected header
element like this:
@ContentChild('header') header!: HTMLElement;
The demo tries to log the element within the ngAfterContentInit()
method like this:
ngAfterContentInit() {
console.log(this.header);
}
Not getting any love, even though the header projects fine within within the main.ts
demo component.
<my-test>
<header>header</header>
Test
</my-test>
Any ideas?