I would like to provide default content that would appear only if content is not transcluded.
For example Here is my component template:
<article>
<header>
<ng-content select="[header]"></ng-content>
</header>
<section>
<ng-content></ng-content>
</section>
</article>
I can use it like this:
<my-component>
<h1 header>This is my header</h1>
<p>This is my content</p>
</my-component>
Now what if i wanted to provide a default header. Is it possible; without acrobatics like checking for content in ngAfterContentInit
?