Vue make axios GET and display data to correct user?

Hi @miku86 I made a small working project, I’m unable to use my actual code but in this example the final axios request in the created hook of Profile.vue console.log('final data',response.data) displays the data I need to display in the template.

I made only Max(profile id:2, performance id: 1) and Joe’s(profile id:1, performance id: 3) profiles return data. (I also added console logs for the data with profile id and names and for the performance id)

(In my actual code I’m using vuex to store profiles and then display using v-for="(item, index) in profiles", here I just added profiles array in data(return{}))

The end result should look like:
Screenshot from 2020-08-28 12-41-20

Thanks so much!

1 Like