Last active
August 1, 2020 11:59
-
-
Save rexar1988/04ab899e469786eeac694ca65b08bddd to your computer and use it in GitHub Desktop.
Variable in ng-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
<ng-template let-firstName="myFirstName" let-greeting="greeting"> | |
<h2>Contact Template</h2> | |
<p>Hello, I am {{ firstName }}!</p> | |
<button (click)="greeting(firstName)">Show first name</button> | |
</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment