Basic

Framework: Vue.js Basic

v-for

Array

<li v-for="(item, index) in items">
  {{ parentMessage }} - {{ index }} - {{ item.message }}
</li>

Object

<li v-for="value in myObject">
  {{ value }}
</li>

<li v-for="(value, key) in myObject">
  {{ key }}: {{ value }}
</li>

<li v-for="(value, key, index) in myObject">
  {{ index }}. {{ key }}: {{ value }}
</li> 

Reference


Life cycle

Framework: Vue.js Life cycle

Import / Export

Framework: Vue.js Import / Export