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
5: Add In-app Navigation
[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
6fe45e5
..
2eb180e
100644
(file)
--- a/
src/app/heroes/heroes.component.html
+++ b/
src/app/heroes/heroes.component.html
@@
-1
+1,8
@@
-{{hero}}
+<h2>My Heroes</h2>
+<ul class="heroes">
+ <li *ngFor="let hero of heroes">
+ <a routerLink="/detail/{{hero.id}}">
+ <span class="badge">{{hero.id}}</span> {{hero.name}}
+ </a>
+ </li>
+</ul>