File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
< my-component2 > </ my-component2 >
9
9
</ div >
10
10
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 >
12
12
< script >
13
13
// 첫번째 컴포넌트 내용
14
14
var cmp1 = {
Original file line number Diff line number Diff line change 10
10
< child-component v-on:show-log ="printText " v-bind:passed-data ="message "> </ child-component >
11
11
</ div >
12
12
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 >
14
14
< script >
15
15
16
16
Vue . component ( 'child-component' , {
Original file line number Diff line number Diff line change 1
1
< script >
2
2
3
3
Vue . component ( 'child-component' , {
4
- props : [ '상위 컴포넌트의 데이터 속성( 프롭스 속성 명) ' ]
4
+ props : [ '프롭스 속성 이름 ' ]
5
5
} ) ;
6
6
7
7
</ script >
8
8
9
9
< body >
10
10
11
- < child-component v-bind:프롭스 속성 ="상위 컴포넌트의 데이터 속성 "> </ child-component >
11
+ < child-component v-bind:프롭스 속성 이름 ="상위 컴포넌트의 data 속성 "> </ child-component >
12
12
13
13
</ body >
You can’t perform that action at this time.
0 commit comments