Skip to content

Commit d30c3fe

Browse files
committed
03
1 parent 48d7b3a commit d30c3fe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<body>
1111
<div id="app">
1212
{{ nextYear('안녕') }}
13+
<input :type="type" :value="inputData">
14+
<a :href="getKossieCoderLink('kossiecoder')">코지 코더 채널</a>
1315
</div>
1416
<script>
1517
new Vue({
@@ -18,9 +20,15 @@
1820
person: {
1921
name: '코지 코더',
2022
age: 34
21-
}
23+
},
24+
inputData: 'hello',
25+
type: 'text',
26+
link: 'https://www.youtube.com/'
2227
},
2328
methods: {
29+
getKossieCoderLink(channel) {
30+
return this.link + channel;
31+
},
2432
nextYear(greeting) {
2533
return greeting + '! ' +this.person.name + ' 는 내년에 ' + (this.person.age + 1) + '살 입니다';
2634
},

0 commit comments

Comments
 (0)