From Child to Parent (Slot) #11844
Unanswered
cyhnkckali
asked this question in
Help/Questions
Replies: 2 comments 1 reply
-
Aşağıdaki gibi bir yol var, ancak çok fazla kod kullanıyor gibi görünüyor |
Beta Was this translation helpful? Give feedback.
0 replies
-
Slots work in reverse - content for slots is passed from parent to child, not vice versa. possible communication:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Can an element be sent to the slot field in the parent component from the child component?
**Exmp:
**Parent Comp
<div> <slot name="tool"> </slot></div>
** Child Comp
<div> First Name
<template #tool>
<button>Click Me!</button>
</template>
</div>
Beta Was this translation helpful? Give feedback.
All reactions