Skip to content

Commit 217ae16

Browse files
committed
Update HeroService#create documentation angular#2231
- add short blurb explaining HeroService#create - include HeroService#create snippet
1 parent e02f255 commit 217ae16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/docs/ts/latest/tutorial/toh-pt6.jade

+4
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ block get-heroes-details
294294
When the given name is non-blank, the handler delegates creation of the
295295
named hero to the hero service, and then adds the new hero to our !{_array}.
296296

297+
Finally, we implement the create method in the HeroService class.
298+
299+
+makeExcerpt('app/hero.service.ts', 'create')
300+
297301
Go ahead, refresh the browser and create some new heroes!
298302

299303
.l-main-section

0 commit comments

Comments
 (0)