[Vuejs]-Passing JSON response from Axios to a data object but getting errors

0👍

It seems the SchoolList component requires an array, so you can simply change the line

this.schools = response.data

to

this.schools = response.data.hit

Although, this depends on how the component is built.

Leave a comment