Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

153
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda