Description
🚀 feature request
Relevant Package
This feature request is for @angular/coreDescription
The ability to add additional (static) providers when bootstrapping the module. This allows to provide additional services or configuration at runtime when bootstrapping a module, which are specific for the module that is getting bootstrapped.
Describe the solution you'd like
Extend the current bootstrapOptions with an additional collection of providers for the module.
angular/packages/core/src/application_ref.ts
Lines 228 to 258 in ecffc35
These additional providers can be added to the injector which gets created to provide the NgZone for the module.
angular/packages/core/src/application_ref.ts
Lines 310 to 315 in ecffc35
Describe alternatives you've considered
Additional Providers can be added to the platformBrowserDynamic callback, but once a platform is created, these values can't change and they are equal for all modules that get bootstrapped.