mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
saying that providers of this NgModule is available to components,pipes and directive of "this" ngModule is not accurate sentence to describe the fact. I am referring from: https://angular.io/guide/hierarchical-dependency-injection. It says that "ModuleInjector is configured by the @NgModule.providers and NgModule.imports property. ModuleInjector is a flattening of all the providers arrays that can be reached by following the NgModule.imports recursively." So, any component,pipe or directive of other NgModule within same ModuleInjector can use providers of this NgModule. PR Close #49966 |
||
|---|---|---|
| .. | ||
| cli | ||
| demos/first-app | ||
| errors | ||
| examples | ||
| extended-diagnostics | ||
| guide | ||
| images | ||
| marketing | ||
| special-elements | ||
| start | ||
| tutorial | ||
| BUILD.bazel | ||
| file-not-found.md | ||
| license.md | ||
| navigation.json | ||