docs(toh-6): missing create instruction (#2264)

fixes #2231
also addresses `<h1>` issue raised in PR #2256
This commit is contained in:
Ward Bell 2016-09-03 13:46:27 -07:00 committed by GitHub
parent 38bef16604
commit 6ff9e1a5c1
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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