[Vuejs]-VueJs. Is it possible to pass one <slot> througth another?

0👍

It’s not possible for a <slot> to be the source for another slot (by using the slot attribute) in the parent component. To allow this would mean that a single element (i.e. VNode) would need to have more than one slot value for the slots that it would be rendered within as you go up the node tree.

This is not allowed:

<slot slot="one"></slot>

It will work if you wrap your slot in a div first like this:

<div slot="one">
  <slot name="one"></slot>
</div>

Here’s a fiddle with your updated example.

Leave a comment