<ul>
<li v-for="item in items">{{ item }}</li>
</ul>
data: {
items: ['Item 1', 'Item 2', 'Item 3']
}
<ul>
<li v-for="item in items">{{ item }}</li>
</ul>
data: {
items: ['Item 1', 'Item 2', 'Item 3']
}
Related
How to handle animations in Vue.js? |
Explain Vue.js directives like v-bind and v-on. |
How to dynamically load components in Vue.js? |
How to handle forms with validation in Vue.js? |
How to handle asynchronous tasks in Vue.js using async/await? |
How to create dynamic and reusable components in Vue.js? |
How to use filters in Vue.js? |
How to loop through an array and render elements in Vue.js? |