docs(toh-6): missing create instruction (#2264)
fixes #2231 also addresses `<h1>` issue raised in PR #2256
This commit is contained in:
parent
38bef16604
commit
6ff9e1a5c1
|
@ -665,6 +665,8 @@ block extract-id
|
|||
+makeExample('toh-4/ts/app/app.component.ts','template', 'app/heroes.component.ts (current template)')(format=".")
|
||||
|
||||
:marked
|
||||
Delete the `<h1>` at the top (forgot about it during the `AppComponent`-to-`HeroesComponent` conversion).
|
||||
|
||||
Delete the last line of the template with the `<my-hero-detail>` tags.
|
||||
|
||||
We'll no longer show the full `HeroDetailComponent` here.
|
||||
|
|
|
@ -294,7 +294,11 @@ block get-heroes-details
|
|||
When the given name is non-blank, the handler delegates creation of the
|
||||
named hero to the hero service, and then adds the new hero to our !{_array}.
|
||||
|
||||
Go ahead, refresh the browser and create some new heroes!
|
||||
Finally, we implement the `create` method in the `HeroService` class.
|
||||
+makeExcerpt('app/hero.service.ts', 'create')
|
||||
|
||||
:marked
|
||||
Refresh the browser and create some new heroes!
|
||||
|
||||
.l-main-section
|
||||
:marked
|
||||
|
|
Loading…
Reference in New Issue