Call method og a RefImpl Object
I have exported a method from a component via defineExpose :
then i have reffed this component with ref="myRef"
in the template part and i'm trying to call the child method of the component from the parent, i'm having a RefImpl object (cf the capture image ) who actually has my method called getCountry but i don't know how to call it and she's not known with my current call
Here is how i tried to call it :
4 Replies
you didnt show the whole code but likely you forgot the .value on the refCountry
Thnaks that was the problem π
refCountry.value[0].getCountry(cell.value)
you need to expose the methods via
defineExpose
Vue.js
Vue.js - The Progressive JavaScript Framework