provideEnvironmentInitializer
This function is used to provide initialization functions that will be executed upon construction of an environment injector.
provideEnvironmentInitializer
This function is used to provide initialization functions that will be executed upon construction of an environment injector.
Note that the provided initializer is run in the injection context.
Previously, this was achieved using the ENVIRONMENT_INITIALIZER token which is now deprecated.
() => voidEnvironmentProvidersDescription
This function is used to provide initialization functions that will be executed upon construction of an environment injector.
Note that the provided initializer is run in the injection context.
Previously, this was achieved using the ENVIRONMENT_INITIALIZER token which is now deprecated.
Usage Notes
The following example illustrates how to configure an initialization function using
provideEnvironmentInitializer()
createEnvironmentInjector( [ provideEnvironmentInitializer(() => { console.log('environment initialized'); }), ], parentInjector);

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
