Hey there! I'm new to Vue and currently working on understanding the whole concept of Vue and how to use it. Right now, my focus is on learning lists.
JS:
Vue.config.productionTip = false;
new Vue({
el: '#app',
data: {
items: [
{Name: "qwe"},
{Name: "qwe"},
{Name: "zxc"},
{Name: "qwe"},
{Name: "asd"}
] },
methods: {
items.push({Name: "tyu"})
}
})
HTML:
<div id="app">
<ol>
<li v-for="item in items">{{item.Name}}</li>
</ol>
</div>