@angular/core

createNgModule

function

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

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