Skip to content

Commit b03c2c6

Browse files
committed
Added the vue component communication examples for book
1 parent 95c90d4 commit b03c2c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

예제코드/06_뷰 컴포넌트 통신/06-1/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<my-component2></my-component2>
99
</div>
1010

11-
<script src="https://unpkg.com/vue@2.4.4/dist/vue.js"></script>
11+
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js"></script>
1212
<script>
1313
// 첫번째 컴포넌트 내용
1414
var cmp1 = {

예제코드/06_뷰 컴포넌트 통신/06-2/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<child-component v-on:show-log="printText" v-bind:passed-data="message"></child-component>
1111
</div>
1212

13-
<script src="https://unpkg.com/vue@2.4.4/dist/vue.js"></script>
13+
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.js"></script>
1414
<script>
1515

1616
Vue.component('child-component', {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script>
22

33
Vue.component('child-component', {
4-
props: ['상위 컴포넌트의 데이터 속성(프롭스 속성 명)']
4+
props: ['프롭스 속성 이름']
55
});
66

77
</script>
88

99
<body>
1010

11-
<child-component v-bind:프롭스 속성="상위 컴포넌트의 데이터 속성"></child-component>
11+
<child-component v-bind:프롭스 속성 이름="상위 컴포넌트의 data 속성"></child-component>
1212

1313
</body>

0 commit comments

Comments
 (0)