填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

getModuleFactory

返回具有给定 id 的 NgModuleFactory(如果存在并且已加载)。无法检索未指定过 id 的模块工厂。如果找不到模块,则抛出该异常。

Returns the NgModuleFactory with the given id, if it exists and has been loaded. Factories for modules that do not specify an id cannot be retrieved. Throws if the module cannot be found.

      
      const getModuleFactory: (id: string) => NgModuleFactory<any>;