projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
3: Create a Feature Component
[examples/angular-tour-of-heroes]
/
src
/
app
/
heroes
/
heroes.component.html
diff --git
a/src/app/heroes/heroes.component.html
b/src/app/heroes/heroes.component.html
index
ef2a0c4
..
e0067e7
100644
(file)
--- a/
src/app/heroes/heroes.component.html
+++ b/
src/app/heroes/heroes.component.html
@@
-1
+1,6
@@
-<p>heroes works!</p>
+<h2>My Heroes</h2>
+<ul class="heroes">
+ <li *ngFor="let hero of heroes" (click)="onSelect(hero)" [class.selected]="hero === selectedHero">
+ <span class="badge">{{hero.id}}</span> {{hero.name}}
+ </li>
+</ul>