In Angular 2 I have a hierarchy of components. Within the tree, however, I need to show yet another element which is decoupled from the object hierarchy. It will be a spinner component. Somehow it does not want to show up.
<parent>
<child>
<grandchild>
<spinner></spinner>
</grandchild>
<child>
</parent>
parent
includeschild
in the template,child
includesgrandchild
in the template.grandchild
does not includespinner
in the template, but wants to show it (it usesng-content
for that). Or perhaps, at some point thechild
would want to show the spinner instead.
How do I get it to work? Does a parent always have to specify possible children? PLease let me know what I'm doing wrong.