Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(toh-pt5/dart): remove an already existing line #2056

Merged
merged 1 commit into from
Aug 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions public/docs/dart/latest/tutorial/toh-pt5.jade
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ code-example(format='').
We import the `HeroService`so we can fetch a hero.
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'import-hero-service')(format=".")
:marked
We import the `OnInit` interface because we'll call the `HeroService` inside the `ngOnInit` component lifecycle hook.
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'import-oninit')(format=".")
:marked
We use the `OnInit` interface from the already imported `angular2/core.dart` package because we'll
call the `HeroService` inside the `ngOnInit` component lifecycle hook.

We inject both the `RouteParams` service and the `HeroService` into the constructor as we've done before,
making private variables for both:
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'ctor', 'lib/hero_detail_component.dart (constructor)')(format=".")
Expand Down