Skip to content

Instantly share code, notes, and snippets.

@ansidev
Last active February 6, 2021 09:44
Show Gist options
  • Save ansidev/928709b082572a31d1e89e8db5d004a6 to your computer and use it in GitHub Desktop.
Save ansidev/928709b082572a31d1e89e8db5d004a6 to your computer and use it in GitHub Desktop.
<template>
<component-001
v-slot="{ prop1, prop2 }"
>
<slot name="slot1" :slot-prop-1="prop1" />
<slot name="slot2" :slot-prop-2="prop2" />
</component-001>
</template>
<script>
export default {
mounted() {
// How to get prop1, prop2 of component-001 here?
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment