How to forward all child component methods to parent component? #6753
Answered
by
MrXieH
yoyo837
asked this question in
Help/Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
MrXieH
Sep 26, 2022
Replies: 1 comment 3 replies
-
Why do it? defineExpose({
getFormRef() { return formRef.value }
})
// parent
x.getFormRef().reset() |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
yoyo837
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why do it?
Is this okay?