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

docs(cb-dependency-injection): Fix typos #1421

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions public/docs/ts/latest/cookbook/dependency-injection.jade
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ figure.image-display

Accordingly, dependencies provided in the root `AppComponent` can be injected into *any* component *anywhere* in the application.

That isn't always desireable.
That isn't always desirable.
Sometimes we want to restrict service availability to a particular region of the application.

We can limit the scope of an injected service to a *branch* of the application hierarchy
Expand Down Expand Up @@ -277,7 +277,7 @@ a(id="qualify-dependency-lookup")
placing it in the `<ng-content>` slot of the `HeroBioComponent` template:
+makeExample('cb-dependency-injection/ts/app/hero-bio.component.ts','template','app/hero-bio.component.ts (template)')(format='.')
:marked
It looks like this, with the heroe's telephone number from `HeroContactComponent` projected above the hero description:
It looks like this, with the hero's telephone number from `HeroContactComponent` projected above the hero description:
figure.image-display
img(src="/resources/images/cookbooks/dependency-injection/hero-bio-and-content.png" alt="bio and contact")
:marked
Expand Down Expand Up @@ -308,7 +308,7 @@ figure.image-display
:marked
If we comment out the `@Host()` decorator, Angular now walks up the injector ancestor tree
until it finds the logger at the `AppComponent` level. The logger logic kicks in and the hero display updates
with the gratuituous "!!!", indicating that the logger was found.
with the gratuitous "!!!", indicating that the logger was found.
figure.image-display
img(src="/resources/images/cookbooks/dependency-injection/hero-bio-contact-no-host.png" alt="Without @Host")
:marked
Expand Down Expand Up @@ -367,7 +367,7 @@ figure.image-display

Where did the injector get that value?
It may already have that value in its internal container.
It it doesn't, it may be able to make one with the help of a ***provider***.
If it doesn't, it may be able to make one with the help of a ***provider***.
A *provider* is a recipe for delivering a service associated with a *token*.
.l-sub-section
:marked
Expand Down