@angular/core

createNgModule

function

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

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