Here's an example:
ChildComponent.vue
321 chars19 lines
ParentComponent.vue
384 chars22 lines
Note that in the parent component, we are creating a ref named child and passing it to the ChildComponent using the ref attribute. Then, we are accessing the exposed value of the child component using child.exposedValue.
Also, make sure that you are using defineExpose in the child component to expose the value.
gistlibby LogSnag