GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: fix typo in dependency injection guide (#50323) · angular/angular@5849287

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • aio/content/guide
    • dependency-injection.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎aio/content/guide/dependency-injection.md‎

Copy file name to clipboardExpand all lines: aio/content/guide/dependency-injection.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class HeroListComponent {}
3434

3535
When you register a provider at the component level, you get a new instance of the service with each new instance of that component.
3636

37-
* At the NgModule level, using the `providers` field of the `@NgModule` decorator. In this scenario, the `HeroService` is available to all components, directives, and pipes declared in this NgModule or other NgModule which is within same ModuleInjector applicable for this NgModule. When you register a provider with a specific NgModule, the same instance of a service is available to all applicable components, directives and pipes.
37+
* At the NgModule level, using the `providers` field of the `@NgModule` decorator. In this scenario, the `HeroService` is available to all components, directives, and pipes declared in this NgModule or other NgModule which is within the same ModuleInjector applicable for this NgModule. When you register a provider with a specific NgModule, the same instance of a service is available to all applicable components, directives and pipes.
3838
To understand all edge-cases, see [Hierarchical injectors](guide/hierarchical-dependency-injection). For example:
3939

4040

@@ -81,4 +81,4 @@ When all requested services have been resolved and returned, Angular can call th
8181
* [Creating and injecting services](guide/creating-injectable-service)
8282
* [Dependency Injection in Action](guide/dependency-injection-in-action)
8383

84-
@reviewed 2022-08-02
84+
@reviewed 2023-05-16

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.