Template Syntax
- v-text
- v-html
- v-show
- v-if, v-else-if, v-else
- v-for
- v-on
- v-bind
- v-model
- v-pre
- v-cloak
- v-once
export default {
data: function() {
return {
msg: "Hello World!!",
ok: true,
who: "girl", //or 'boy' or 'dog'
fruits: ["apple", "banana", "orange"],
classes: { bg: false, colorRed: true },
value: "ID를 입력하세요."
};
},
methods: {
message: function() {
alert(this.msg);
},
appFruit() {
this.fruits.push("pineapple");
}
}
};
.bg {
background-color: blue;
}
.colorRed {
color: red;
}
댓글남기기