Angular content projection using ng-content only working on root level?
I’m trying to select elements in ng-content, but seems to work only if the element is on content’s root level
Is there an equivalent to `TemplateRef` for Angular components, for conditional/dynamic content projection?
I would like to be able to have this projected content:
How to catch any projection?
In case it needs to know if projection is provided, how can it be implemented?
How to get reference of Component from projected content
I am writing a common angular library component, where the consumers can pass on optional content/template/component through angular content projection mechanism. Below are some example classes to explain better.