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