Last active
October 16, 2017 10:34
-
-
Save ragowthaman/fa9abce44781d3633788bdef38a1598a to your computer and use it in GitHub Desktop.
Passing data to incoming component via ng-content
This file contains hidden or 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
total: number = 0; |
This file contains hidden or 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
<app-incoming-component>hello: {{total}}</app-incoming-component> |
This file contains hidden or 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
<ng-content></ng-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment