// 데이터를 갱신하면 화면도 바뀐다.
// App.vue
<template>
<h1 @click="increase">
{{ count }}
</h1>
</template>
<script>
export default {
data() {
return {
count : 0
}
},
methods: {
increase() {
this.count += 1
}
}
}
</script>
<style>
h1{
font-size: 50px;
color: royalblue;
}
</style>