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

154
Vistas
Vue.js and Javascript async function call in Computed

Good afternoon,

I have a computed value that gets an array of data that comes to the component as props, it then does an extra check on the data and renders that data that comes in as props on the front end.

For example the prop it recieves is an array of objects.

I would like to add in my Computed property, code that will take this prop as an array of object, loop through the array of objects, and add a new property to each of the objects. This new property will be the result of an API Call.

For an example, I would like to do the following below in the computed value

for (var index = 0; index <= this.propData.length; index++) {
            this.propData[index].useful = await axios('service1')
          }
        }

Is there a way to implement this? thank you

about 4 years ago · Juan Pablo Isaza
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