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

152
Views
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
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!