\n\nOutput:\n\nHallo\nWelt\n!\n\nThe item variable is available inside the element for each iteration.\nGo deeper:\n\n List Rendering (Vue docs) — v-for with index, object iteration, and why a :key matters for stable updates.\n\n", "dateModified": "2026-07-05T08:49:36+00:00" } } }

LOGBOOK

HELP

Quiz Entry - updated: 2026.07.05

How do you render a list of items in Vue.js?

The v-for directive loops over an array (or object) to render one element per item.

<ul id="data">
  <li v-for="item in items">{{ item }}</li>
</ul>
<script>
Vue.createApp({
  data() {
    return { items: ["Hallo", "Welt", "!"] }
  }
}).mount('#data');
</script>

Output:

  • Hallo
  • Welt
  • !

The item variable is available inside the element for each iteration.

Go deeper:

From Quiz: WEBT / Web Frameworks and Vue.js | Updated: Jul 05, 2026