From c8cc3226cc96970b31aa5637984e7f5c85731d15 Mon Sep 17 00:00:00 2001 From: Benjamin Dopplinger Date: Wed, 10 Aug 2016 10:17:56 +1000 Subject: [PATCH] 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. --- public/docs/dart/latest/tutorial/toh-pt5.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/docs/dart/latest/tutorial/toh-pt5.jade b/public/docs/dart/latest/tutorial/toh-pt5.jade index 8c24c76abf..00fe8db972 100644 --- a/public/docs/dart/latest/tutorial/toh-pt5.jade +++ b/public/docs/dart/latest/tutorial/toh-pt5.jade @@ -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=".")