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

Commit c8cc322

Browse files
benasocjkwalrath
authored andcommitted
docs(toh-pt5/dart): remove an already existing line (#2056)
Remove an import statement as the package is already imported at this stage of the tutorial.
1 parent 1ae7b31 commit c8cc322

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/docs/dart/latest/tutorial/toh-pt5.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ code-example(format='').
400400
We import the `HeroService`so we can fetch a hero.
401401
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'import-hero-service')(format=".")
402402
:marked
403-
We import the `OnInit` interface because we'll call the `HeroService` inside the `ngOnInit` component lifecycle hook.
404-
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'import-oninit')(format=".")
405-
:marked
403+
We use the `OnInit` interface from the already imported `angular2/core.dart` package because we'll
404+
call the `HeroService` inside the `ngOnInit` component lifecycle hook.
405+
406406
We inject both the `RouteParams` service and the `HeroService` into the constructor as we've done before,
407407
making private variables for both:
408408
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'ctor', 'lib/hero_detail_component.dart (constructor)')(format=".")

0 commit comments

Comments
 (0)