Level 73
Are you using Vue 2? I am using this approach in Vue 2: https://hvekriya.medium.com/pass-data-from-child-to-parent-in-vue-js-b1ff917f70cc
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have ref in my child.vue wanted to send to parent.vue how can i do ?
child.vue
<div class="text-center" data-app>
<v-dialog
v-model="dialog"
width="500"
ref="h"
>
</v-dialog>
</div>
parent.vue
console.log('this.$refs.h)
Show me undefine
Please or to participate in this conversation.