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>
parentincludeschildin the template,childincludesgrandchildin the template.grandchilddoes not includespinnerin the template, but wants to show it (it usesng-contentfor that). Or perhaps, at some point thechildwould 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.