• Version 8.2.6
  • Published
  • 76 kB
  • No dependencies
  • MIT license


npm i @nguniversal/module-map-ngfactory-loader
yarn add @nguniversal/module-map-ngfactory-loader
pnpm add @nguniversal/module-map-ngfactory-loader


NgFactoryLoader which uses a Map to load ngfactories without lazy loading



variable MODULE_MAP

const MODULE_MAP: InjectionToken<ModuleMap>;
  • Token used by the ModuleMapNgFactoryLoader to load modules


function provideModuleMap

provideModuleMap: (moduleMap: ModuleMap) => StaticProvider;
  • Helper function for getting the providers object for the MODULE_MAP

    Parameter moduleMap

    Map to use as a value for MODULE_MAP


class ModuleMapLoaderModule

class ModuleMapLoaderModule {}
  • Module for using a NgModuleFactoryLoader which does not lazy load

method withMap

static withMap: (moduleMap: ModuleMap) => ModuleWithProviders;
  • Returns a ModuleMapLoaderModule along with a MODULE_MAP

    Parameter moduleMap

    Map to use as a value for MODULE_MAP

class ModuleMapNgFactoryLoader

class ModuleMapNgFactoryLoader implements NgModuleFactoryLoader {}
  • NgModuleFactoryLoader which does not lazy load


constructor(compiler: Compiler, moduleMap: ModuleMap);

    method load

    load: (loadChildrenString: string) => Promise<NgModuleFactory<any>>;

      Type Aliases

      type ɵnguniversal_modules_module_map_ngfactory_loader_module_map_ngfactory_loader_a

      type ModuleMap = {
      [key: string]: Type<any> | NgModuleFactory<any>;

        Package Files (4)

        Dependencies (0)

        No dependencies.

        Dev Dependencies (0)

        No dev dependencies.

        Peer Dependencies (3)


        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@nguniversal/module-map-ngfactory-loader.

        • Markdown
        • HTML
          <a href="https://www.jsdocs.io/package/@nguniversal/module-map-ngfactory-loader"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>