[Vuejs]-How to display data from id sent from other page in vue js

0👍

Replace

.then((data) => (this.event = data))

by

.then((data) => (this.event = data.data))

If you console log "data" you’ll see that your actual API call results (those you are looking for) are in a nested object called data.

Edit: Interesting thing is that you did it right in Card.vue, you accessed the "data" object from the API call’s results.

Leave a comment