I'm new to webcomponents. Since v1 of webcomponents is available, I'm starting there. I have read various posts around the web about them. I'm particularly interested in composing them correctly. I have read about slots and have them working, although my efforts have not resulted in slotted webcomponents that work the way I expected.
If I have compose nested web components like this, the DOM from the nested/slotted webcomponent does not get inserted in the slot of the parent:
<parent-component>
<child-component slot="child"></child-component>
</parent-component>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…