[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/NgModuleFactory [Back]  [Original]

NgModuleFactory Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

NgModuleFactory

Class
deprecated

Deprecation warning

This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy JIT mode. Angular provides APIs that accept NgModule classes directly (such as PlatformRef.bootstrapModule and createNgModule), consider switching to those APIs instead of using factory-based ones.

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

        
          abstract class NgModuleFactory<T> {  abstract readonly moduleType: Type<T>;  abstract create(parentInjector: Injector | null): NgModuleRef<T>;}
        
        

    create

    NgModuleRef<T>
    @paramparentInjectorInjector | null
    @returnsNgModuleRef<T>
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page