W3cubDocs

/Angular

ImportedNgModuleProviders

type-alias deprecated

Providers that were imported from NgModules via the importProvidersFrom function.

See more...

Deprecated: replaced by EnvironmentProviders

type ImportedNgModuleProviders = EnvironmentProviders;

See also

Description

These providers are meant for use in an application injector (or other environment injectors) and should not be used in component injectors.

This type cannot be directly implemented. It's returned from the importProvidersFrom function and serves to prevent the extracted NgModule providers from being used in the wrong contexts.

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