We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9975247 commit 48d7b3aCopy full SHA for 48d7b3a
index.html
@@ -9,13 +9,24 @@
9
</head>
10
<body>
11
<div id="app">
12
- {{ name }}
+ {{ nextYear('안녕') }}
13
</div>
14
<script>
15
new Vue({
16
el: '#app',
17
data: {
18
- name: '코지 코더'
+ person: {
19
+ name: '코지 코더',
20
+ age: 34
21
+ }
22
+ },
23
+ methods: {
24
+ nextYear(greeting) {
25
+ return greeting + '! ' +this.person.name + ' 는 내년에 ' + (this.person.age + 1) + '살 입니다';
26
27
+ otherMethod: function() {
28
+ this.nextYear();
29
30
}
31
})
32
</script>
0 commit comments