[Vuejs]-Can I pass props between two slots inside one Vue component?

1👍

You can expose data via scoped slots, inside your Projects.vue you need to create a slot like so:
<slot :projects="projects"></slot>.
when doing this you later can expose the projects like so:

   <Projects>
            <template v-slot="{ projects }">
              any code you put here has access to projects data property (including user template)
            </template>
   </Projects>

Leave a comment