I have two v-for loops like so:
<div v-for="id in ids">
<div v-for="data in getData(id)">
<p>{{data.name}}</p>
</div>
</div>
The first v-for iterates through an array of ids stored inside data().
On the second v-for it iterates through the result returned by the function getData().
The axios call does return an array of result including the name per ids, however the <p> tag doesnt display the names.
<script>
data(){
id: ['1', '2', '3']
},
methods:{
getData(id){
//axios call
return response.data;
}
}
</script>
v-for