Create Slots for components #2149
Unanswered
el-j
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, so is there any way to create slots or provide at least default slot-content from the route-definition?
i have a simple component that is loaded for each route segement like:
/someroute/{elementName}
i do this with:
i can assign the props to my
item
and they are received by the item. But how to handle components that do not get the value via aprop
and instead renderingdefault content
in adefault slot
?in other words i need something like:
or i would need something like:
i am not sure how i get this done. any help very much apreachiated.
p.s.: the components return will render any slot they get, complete automatically, but i cannot give in any slot from router ...
Beta Was this translation helpful? Give feedback.
All reactions