<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 use Vue Router for navigation? |
How to loop through an array and render elements in Vue.js? |
How to emit custom events from child components to parent components in vue? |
How to use filters in Vue.js? |
How to handle routing in a Vue.js application using Vue Router? |
How to handle asynchronous operations in Vuex actions? |
How to use mixins in Vue.js? |
How to dynamically load components in Vue.js? |