Created
February 28, 2018 02:06
-
-
Save pedrogk/74eca569ee081db3e4731c087bd18894 to your computer and use it in GitHub Desktop.
Ejemplo de template Angular
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
<h2>Hero List</h2> | |
<p><i>Pick a hero from the list</i></p> | |
<ul> | |
<li *ngFor="let hero of heroes" (click)="selectHero(hero)"> | |
{{hero.name}} | |
</li> | |
</ul> | |
<app-hero-detail *ngIf="selectedHero" [hero]="selectedHero"></app-hero-detail> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment