forked from joshua1988/doit-vuejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the vue component communication examples for book
- Loading branch information
1 parent
95c90d4
commit b03c2c6
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<script> | ||
|
||
Vue.component('child-component', { | ||
props: ['상위 컴포넌트의 데이터 속성(프롭스 속성 명)'] | ||
props: ['프롭스 속성 이름'] | ||
}); | ||
|
||
</script> | ||
|
||
<body> | ||
|
||
<child-component v-bind:프롭스 속성="상위 컴포넌트의 데이터 속성"></child-component> | ||
<child-component v-bind:프롭스 속성 이름="상위 컴포넌트의 data 속성"></child-component> | ||
|
||
</body> |