[Vuejs]-How to render WordPress rest api datawith vue.js

0👍

Within your data function your returning the posts as an empty string. It should be an empty array.

Right now your trying to use v-for to loop over a string of posts. You should be looping through an array of post objects.

Also, instead of the ready function use an earlier hook like beforeCreate

That should take care of your problem.

Leave a comment