[Vuejs]-Why my vue.js table won't render?

0👍

I’m not sure what kind of data you’re using, but let’s just assume you have an array of user objects in users

<tr v-for="user in users" :key="user.name">
    <td>{{user.name}}</td>
    <td>{{user.name}}</td>
</tr>

This will loop over each user object in users. user here is an alias, meaning it can be anything.

<tr v-for="dumbledore in users" :key="dumbledore.name">
    <td>{{dumbledore.name}}</td>
    <td>{{dumbledore.name}}</td>
</tr>

Will work

Leave a comment