docs(toh-pt6): fix filename typo
This commit is contained in:
parent
8569479423
commit
301aadddde
|
@ -218,7 +218,10 @@ code-example(format="." language="bash").
|
|||
In the following section we will update our components to use our new methods to add, edit and delete heroes.
|
||||
|
||||
### Add/Edit in the *HeroDetailComponent*
|
||||
We already have `HeroDetailComponent` for viewing details about a specific hero. Add and Edit are natural extensions of the detail view, so we are able to reuse `HeroDetailComponent` with a few tweaks. The original component was created to render existing data, but to add new data we have to initialize the `hero` property to an empty `Hero` object.
|
||||
|
||||
We already have `HeroDetailComponent` for viewing details about a specific hero.
|
||||
Add and Edit are natural extensions of the detail view, so we are able to reuse `HeroDetailComponent` with a few tweaks.
|
||||
The original component was created to render existing data, but to add new data we have to initialize the `hero` property to an empty `Hero` object.
|
||||
|
||||
+makeExample('toh-6/ts/app/hero-detail.component.ts', 'ngOnInit', 'app/hero-detail.component.ts (ngOnInit)')(format=".")
|
||||
|
||||
|
@ -364,4 +367,3 @@ figure.image-display
|
|||
hero-detail.comp...html,
|
||||
hero.service.ts`
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue