Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f64e52

Browse files
sonukapoorkara
authored andcommitted
docs: clarifies the service limitation (angular#36349)
Closes angular#36332 PR Close angular#36349
1 parent b2a3325 commit 5f64e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aio/content/guide/providers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Though you can provide services by lazy loading modules, not all services can be
5858
Another way to limit provider scope is by adding the service you want to limit to the component’s
5959
`providers` array. Component providers and NgModule providers are independent of each other. This
6060
method is helpful when you want to eagerly load a module that needs a service all to itself.
61-
Providing a service in the component limits the service only to that component (other components in
62-
the same module can’t access it).
61+
Providing a service in the component limits the service only to that component and its descendants.
62+
Other components in the same module can’t access it.
6363

6464
<code-example path="providers/src/app/app.component.ts" region="component-providers" header="src/app/app.component.ts"></code-example>
6565

0 commit comments

Comments
 (0)