[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/getModuleFactory [Back]  [Original]

getModuleFactory Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

getModuleFactory

function
deprecated

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.

Deprecation warning

Use getNgModuleById instead.

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

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

    Use getNgModuleById instead.

    @paramidstring
    @returnsNgModuleFactory<any>
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page