docs(toh-pt5): fix capitalization of Router & update screenshot (#3526)

This commit is contained in:
Kapunahele Wong 2017-04-11 22:14:23 -04:00 committed by Ward Bell
parent 4d44cde291
commit 0cf98324a8
1 changed files with 3 additions and 3 deletions

View File

@ -726,8 +726,8 @@ figure.image-display
This approach requires the following changes to the component class:
1. Import the `router` from the Angular router library.
1. Inject the `router` in the constructor, along with the `HeroService`.
1. Import the `Router` from the Angular router library.
1. Inject the `Router` in the constructor, along with the `HeroService`.
1. Implement `gotoDetail()` by calling the router `navigate()` method.
+makeExample('toh-5/ts/src/app/heroes.component.ts', 'gotoDetail', 'src/app/heroes.component.ts (gotoDetail)')
@ -837,7 +837,7 @@ figure.image-display
Look at the app now. The dashboard, heroes, and navigation links are styled.
figure.image-display
img(src='/resources/images/devguide/toh/dashboard-top-heroes.png' alt="View navigations")
img(src='/resources/images/devguide/toh/heroes-dashboard-1.png' alt="View navigations")
.l-main-section
:marked