Last active
February 6, 2021 09:44
-
-
Save ansidev/928709b082572a31d1e89e8db5d004a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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