W3cubDocs

/Angular

makeEnvironmentProviders

function

Wrap an array of Providers into EnvironmentProviders, preventing them from being accidentally referenced in `@Component in a component injector.

makeEnvironmentProviders(providers: (Provider | EnvironmentProviders)[]): EnvironmentProviders

Parameters
providers (Provider | EnvironmentProviders)[]
Returns

EnvironmentProviders

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/makeEnvironmentProviders