Create Component with Slot on runtime #10494
-
Hello, For example:
its not getting rendered but the key with its value is present. What is the correct approach to mount/ create a component on runtime programmatically? my render section
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay it was easier than thought. I knew that documentation but i didnt checked, that the name between the brackets could be fetched from a vFor, since my IDE shows its not connected.
with that, element.slots = string[] |
Beta Was this translation helpful? Give feedback.
Okay it was easier than thought.
https://vuejs.org/guide/components/slots.html#dynamic-slot-names
I knew that documentation but i didnt checked, that the name between the brackets could be fetched from a vFor, since my IDE shows its not connected.
with that, element.slots = string[]