In my Vue Application, I have various child components that are dynamically loaded based on the values selected in the parent component. When the submit button in the parent component is clicked, I need to retrieve all the values from the child components and pass them to the parent.
<template>
<div>
<v-select v-model="category"/>
<firstComponent v-show="category == 1">
<secondComponent v-show="category == 2">
<v-btn @click="submitData">Submit</v-btn>
</div></template>
Ignore the syntax, but essentially I'm looking for a way to gather input field data from the child components and include it in the submitData method of the parent component.