type-alias
Encapsulated Provider
s that are only accepted during creation of an EnvironmentInjector
(e.g. in an NgModule
).
type EnvironmentProviders = { ɵbrand: 'EnvironmentProviders'; };
Using this wrapper type prevents providers which are only designed to work in application/environment injectors from being accidentally included in @Component.providers
and ending up in a component injector.
This wrapper type prevents access to the Provider
s inside.
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/EnvironmentProviders