-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert-Frampton
authored and
Robert-Frampton
committed
Jan 5, 2018
1 parent
219f429
commit 6bd1caa
Showing
7 changed files
with
79 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Component from 'metal-component'; | ||
import Soy from 'metal-soy'; | ||
import './ChildComponent.soy.js'; | ||
|
||
import templates from './Portal.soy.js'; | ||
|
||
class Portal extends Component { | ||
} | ||
|
||
Portal.STATE = { | ||
message: {} | ||
}; | ||
|
||
Soy.register(Portal, templates); | ||
|
||
export default Portal; |
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 @@ | ||
{namespace Portal} | ||
|
||
/** | ||
* @param? message | ||
*/ | ||
{template .render} | ||
<div class="portal"> | ||
Portal: {$message} | ||
</div> | ||
{/template} |
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,16 @@ | ||
import Component from 'metal-component'; | ||
import Soy from 'metal-soy'; | ||
import './Portal.soy.js'; | ||
|
||
import templates from './PortalParent.soy.js'; | ||
|
||
class PortalParent extends Component { | ||
} | ||
|
||
PortalParent.STATE = { | ||
message: {} | ||
}; | ||
|
||
Soy.register(PortalParent, templates); | ||
|
||
export default PortalParent; |
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,15 @@ | ||
{namespace PortalParent} | ||
|
||
/** | ||
* @param? message | ||
*/ | ||
{template .render} | ||
<div class="portal-parent"> | ||
Parent: {$message} | ||
|
||
{call Portal.render} | ||
{param message: $message /} | ||
{param portalElement: true /} | ||
{/call} | ||
</div> | ||
{/template} |
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