mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c78baccf8d
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