How to bind a property from a slot to the parent component's reference? #11112
Unanswered
ClementNerma
asked this question in
Help/Questions
Replies: 2 comments 3 replies
-
Try this: <Child>
<template v-for="(_, name) in $slots" #[name]="slotProps">
<slot :name="name" v-bind="slotProps" />
</template>
</Child> |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can emit the value from Child component and update |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Here is a snippet of what i'd like to do:
I have no idea how to achieve this, and can't find anything in the docs...
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions