docs(toh-pt5/dart): fix grammar mistakes (#2057)

This commit is contained in:
Benjamin Dopplinger 2016-08-10 03:43:42 +10:00 committed by Kathy Walrath
parent 841db9e817
commit ef1171bd36
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ code-example(format='').
We import the `OnInit` interface because we'll call the `HeroService` inside the `ngOnInit` component lifecycle hook. 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=".") +makeExample('toh-5/dart/lib/hero_detail_component.dart', 'import-oninit')(format=".")
:marked :marked
We inject the both the `RouteParams` service and the `HeroService` into the constructor as we've done before, We inject both the `RouteParams` service and the `HeroService` into the constructor as we've done before,
making private variables for both: making private variables for both:
+makeExample('toh-5/dart/lib/hero_detail_component.dart', 'ctor', 'lib/hero_detail_component.dart (constructor)')(format=".") +makeExample('toh-5/dart/lib/hero_detail_component.dart', 'ctor', 'lib/hero_detail_component.dart (constructor)')(format=".")
:marked :marked
@ -584,7 +584,7 @@ figure.image-display
:marked :marked
.l-sub-section .l-sub-section
:marked :marked
The `styleUrls` property is an list of style file names (with paths). The `styleUrls` property is a list of style file names (with paths).
We could list multiple style files from different locations if we needed them. We could list multiple style files from different locations if we needed them.
As with `templateUrl`, we must specify the path _all the way back to the application root_. As with `templateUrl`, we must specify the path _all the way back to the application root_.
:marked :marked