I have a child component, which is built into the parent. I want to access the child's method from the parent. I want to use $refs
for this purpose.
Template:
<template>
<div>Parent!</div>
</template>
Script:
<script>
Vue.component('child',{
template: `<div>I am child</div>`,
}
export default {
name: 'Parent'
}
</script>
How could I declare $refs
for my child in this case?