[Vuejs]-How do I define a component in a slot which as a prop which is defined in the child component

0๐Ÿ‘

โœ…

I think this is solution for your case

Alpha.vue

<template>
<bravo>
<template slot="card" slot-scope="{ result }">
<charlie :result="result"></charlie>
</template>
</bravo>
</template>

And you should wrap your slots in Bravo.vue

Documentation

Leave a comment