docs: edit suggestion to meet style guide (#47979)

PR Close #47979
This commit is contained in:
Bob Watson
2022-12-13 14:14:34 -08:00
committed by Jessica Janiuk
parent 19c94c15a2
commit aabf8be033
+2 -1
View File
@@ -44,7 +44,8 @@ When you register a provider at the component level, you get a new instance of t
class HeroListModule {}
</code-example>
When you register a provider with a specific NgModule, the same instance of a service is available to all components in that NgModule (to understand all edge-cases, see [Hierarchical injectors](guide/hierarchical-dependency-injection)).
When you register a provider with a specific NgModule, the same instance of a service is available to all components in that NgModule.
To understand all edge-cases, see [Hierarchical injectors](guide/hierarchical-dependency-injection).
* At the application root level, which allows injecting it into other classes in the application. This can be done by adding the `providedIn: 'root'` field to the `@Injectable` decorator: