mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This section states that "Importing a module with services means that you will have a new instance of that service". This is only true for lazy-loaded `NgModules`. For non-lazy-loaded modules, my understanding is that the providers arrays are flattened into the root injector meaning that importing a module with a service doesn't create a new instance of that service. PR Close #41835 |
||
|---|---|---|
| .. | ||
| cli | ||
| cli-src | ||
| errors | ||
| examples | ||
| guide | ||
| images | ||
| marketing | ||
| start | ||
| tutorial | ||
| file-not-found.md | ||
| license.md | ||
| navigation.json | ||