• 개요
@angular/core

getModuleFactory

함수
사용 중단 권고

Returns the NgModuleFactory with the given id (specified using @NgModule.id field), if it exists and has been loaded. Factories for NgModules that do not specify an id cannot be retrieved. Throws if an NgModule cannot be found.

사용 중단을 권고합니다.

Use getNgModuleById instead.

API

function getModuleFactory(id: string): NgModuleFactory<any>;
@deprecated

Use getNgModuleById instead.

@paramidstring
@returnsNgModuleFactory<any>
상세 내용으로 이동