28
loading...
This website collects cookies to deliver better user experience
**<template>**
<h1>Hello {{name}}</h1>
**</template>
<script>**
export default {
data() {
return {
name: 'Adyaksa',
}
}
}
**</script>
<style>**
h1 {
color: red;
}
**</style>**
arrayList
. You can easily do it by adding v-for
directives like this:<li **v-for="item in arrayList"**> {{ item }} </li>
v-for
directives to easily access all the attributes of the item. And there are many more neat directives such as v-if
, v-show
, v-model
etc.