Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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.