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

Commit 11b6fef

Browse files
chalinwardbell
authored andcommitted
docs(guide/ts): hierarchical-dependency-injection copyedits
closes #1146 Copyedits found during creation of Dart version.
1 parent 4097c67 commit 11b6fef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/docs/ts/latest/guide/hierarchical-dependency-injection.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
21
include ../_util-fns
2+
33
:marked
44
We learned the basics of Angular Dependency injection in the
55
[Dependency Injection](./dependency-injection.html) chapter.
@@ -91,7 +91,7 @@ figure.image-display
9191
:marked
9292
## Component Injectors
9393

94-
In the previous section, we talked about injectors and how they are organized like a tree. Lookups follow the injector tree upwards until they found the requested thing to inject. But when do we actually want to provide providers on the root injector and when do we want to provide them on a child injector?
94+
In the previous section, we talked about injectors and how they are organized like a tree. Lookups follow the injector tree upwards until they find the requested thing to inject. But when do we actually want to provide providers on the root injector and when do we want to provide them on a child injector?
9595

9696
Consider you are building a component to show a list of super heroes that displays each super hero in a card with it’s name and superpower. There should also be an edit button that opens up an editor to change the name and superpower of our hero.
9797

@@ -107,7 +107,7 @@ figure.image-display
107107
+makeExample('hierarchical-dependency-injection/ts/app/hero.ts', null, 'app/hero.ts')(format=".")
108108

109109
:marked
110-
Our `HeroesListComponent` defines a template that creates a list of `HeroCardComponents` and `HeroEditorComponents`, each bound to an instance of hero that is returned from the `HeroService`. Ok, that’s not entirely true. It actually binds to an `EditItem<Hero>` which is a simple generic datatype that can wrap any type and indicate if the item being wrapped is currently being edited or not.
110+
Our `HeroesListComponent` defines a template that creates a list of `HeroCardComponent`s and `HeroEditorComponent`s, each bound to an instance of hero that is returned from the `HeroService`. Ok, that’s not entirely true. It actually binds to an `EditItem<Hero>` which is a simple generic datatype that can wrap any type and indicate if the item being wrapped is currently being edited or not.
111111

112112
+makeExample('hierarchical-dependency-injection/ts/app/edit-item.ts', null, 'app/edit-item.ts')(format=".")
113113

0 commit comments

Comments
 (0)