Assuming I have a custom component that can be called as
<c-component>
<c-title>title text</c-title>
<c-help>help text</c-help>
</c-component>
or as just <c-component></c-component>
or with either/only of the sub-compoenents.
And I want to present a completely different interface for c-component if there is not a sub-component vs. if there is.... Is there way I can query the existence of a child content element without inserting it?
e.g. in the c-content's template
<element if="c-help componenet exists">
<various elements and stuff that can't go in the c-help directive/>
<ng-content selector="c-help"></ng-content>
</element>
<element if="c-title component exists">
<various elements and stuff that can't go in the c-help directive/>
<ng-content selector="c-title"></ng-content>
</element>
<element if="c-title and c-help component don't exist">
<various elements and stuff that can't go in the c-help directive/>
<ng-content></ng-content>
</element>