Categories
How to execute a method of a child component (child component) from a component?
How can you call a method of a child component (child component) like this?
Answer the question
In order to leave comments, you need to log in
parentComponent
<template> <child-component ref="childComponent" /> </template>
export default { methods: { action() { this.$refs.childComponent.action(); } }, }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question