@angular/core

createNgModule

function

Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.

  
    createNgModule(  ngModule: Type<T>,  parentInjector?: Injector): NgModuleRef<T>;
  
  
Jump to details