[Vuejs]-Laravel, Vue.js array empty

0πŸ‘

βœ…

It should be this.notes = res.data but you have this.articles = res.data;

Then you just need to loop over the array and access properties on the object, something like this:

<div v-for="(note, index) in notes" :key="`note-${key}`">
    <h2 v-text="note.title"></h2>
    <p v-text="note.body"></p>
    <p v-text="note.filename"></p>
</div>

Leave a comment