From cd4021ba41bc7a66097b515310bec14168cf0027 Mon Sep 17 00:00:00 2001 From: Aristeidis Bampakos Date: Sat, 7 Sep 2019 18:48:40 +0300 Subject: [PATCH] docs: Typo fixes in hierarchical DI guide (#32536) Introduce minor typo fixes in the guide for hierarchical dependency injection PR Close #32536 --- aio/content/guide/hierarchical-dependency-injection.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/guide/hierarchical-dependency-injection.md b/aio/content/guide/hierarchical-dependency-injection.md index 15d3d1e5ed..746ca3ee04 100644 --- a/aio/content/guide/hierarchical-dependency-injection.md +++ b/aio/content/guide/hierarchical-dependency-injection.md @@ -3,7 +3,7 @@ Injectors in Angular have rules that you can leverage to achieve the desired visibility of injectables in your apps. By understanding these rules, you can determine in which -NgModule or component you should declare a provider. +NgModule, Component or Directive you should declare a provider. ## Two injector hierarchies @@ -592,7 +592,7 @@ its search at the `<#VIEW>` belonging to `` (`<#VIEW>` is included because it is injected from `@Component()`) and ends with ``. In this case, the `FlowerService` is resolved in the ``'s `providers` array with sunflower 🌻. The injector doesn't -have to look any further in the injector tree. It stops as soon as it as it +have to look any further in the injector tree. It stops as soon as it finds the `FlowerService` and never sees the 🌺 (red hibiscus). @@ -618,7 +618,7 @@ set it up on your own, skip ahead to [Modifying service availability](guide/hier The example app features a second service, the `AnimalService` to demonstrate `viewProviders`. -First, create an `AnimalService` with an `emoji` property of whale 🐳: +First, create an `AnimalService` with an `emoji` property of 🐳 (whale): @@ -795,7 +795,7 @@ The `AnimalService` in the logical tree would look like this: ``` -The projected content of `` sees the whale 🐳, not +The projected content of `` sees the 🐳 (whale), not the 🐶 (puppy), because the 🐶 (puppy) is inside the `` `<#VIEW>`. The `` can only see the 🐶 (puppy)