-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make aware props available only to nested components
- Loading branch information
1 parent
42436e6
commit bd6395e
Showing
10 changed files
with
149 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'Default my prop in child' | ||
}; | ||
</script> | ||
|
||
<div> | ||
{{ myprop }} | ||
|
||
<yield></yield> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'My DEFAULT prop in div1' | ||
}; | ||
</script> | ||
|
||
<div> | ||
div1: {{ myprop }} | ||
<yield></yield> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'My DEFAULT prop in div2' | ||
}; | ||
</script> | ||
|
||
<div> | ||
div2: {{ myprop }} | ||
<yield></yield> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'My DEFAULT prop in div3' | ||
}; | ||
</script> | ||
|
||
<div> | ||
div3: {{ myprop }} | ||
<yield></yield> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'My DEFAULT prop in div4' | ||
}; | ||
</script> | ||
|
||
<div> | ||
div4: {{ myprop }} | ||
<yield></yield> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script props> | ||
module.exports = { | ||
myprop: props.myprop || 'Default my prop in parent' | ||
}; | ||
</script> | ||
|
||
<div> | ||
{{ myprop }} | ||
|
||
<yield></yield> | ||
</div> |
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
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