[Vuejs]-Vuejs expression is not working correctly

1👍

Please, read the docs about list rendering
https://v2.vuejs.org/v2/guide/list.html

If you have an items array of objects, then you can loop over it in your HTML by using v-for, or directly access each entry by specifying the index in the expression: {{ items[0].Name }}

<ul>
  <li v-for="item in items" :key="item.ID">{{ item.name }}</li>
</ul>

Notice you’re using item, not items, inside the <li> tag, because you instructed v-for to assign the cursor to that variable.

Leave a comment