Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
How to pass multiple input values from CHILD Component to Parent component in Vue?

** Anyone has idea how to pass child component multiple. input values **

<template>
  <div>
    <v-row align="center">
      <v-select
        :items="languages"
        v-model="selectedOption"
        @input="changeLanguage()"
        outlined
        solo
        class="m-3"
        cols="12"
        sm="2"
        label="Select Language"
      ></v-select>

      <v-combobox
        @input-content="changeContent()"
        v-model="contents2"
        outlined
        solo
        class="d-inline-flex"
        cols="12"
        sm="2"
        label="Input Content"
      ></v-combobox>
    </v-row>
  </div>
</template>

** My Template folder above, please feel free to ask more source code from me **

 <Child
        v-for="count in sec"
        :key="count"
        v-model="selectedLanguage"
        :languages="languages"
        :contents="contents"
        :input="onChangeChild"
        :inputContent="onChangeContent"
      />

** Here is my Parent component source code **

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Seems like you already know what you want and what you need. And have the skills to enhance your approach to solve the problem.

Properties by parent can be used as v-model on your deeper components.

You can also split your component into multiple if you need to thoroughly manage some values. If that would not cost you more testing or any other resources.

When you use emit as a channel to communicate with parent component. Always try to remember that the payload you emit can be extended and designed however you want/need. For example:

this.emit("updateMultiple", {
var: complexObject
anotherVar: moreComplexObject
})

Then you can manage the emits in detailed manner within a method breaking down the payload to your task need.

<input @updateMultiple="advancedFunction">

At the methods:

advancedFunction(emitPayload) {
const inputOne = emitPayload.var
const inputTwo = emitPayload.anotherVar
//...further logic
},

Finally you can manage emits based on when you want to trigger them within your child components.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!