Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda