Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

ImportedNgModuleProviders

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.