@nguniversal/module-map-ngfactory-loader

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

Install

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

Overview

NgFactoryLoader which uses a Map to load ngfactories without lazy loading

Index

Variables

variable MODULE_MAP

const MODULE_MAP: any;
  • Token used by the ModuleMapNgFactoryLoader to load modules

Functions

function provideModuleMap

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

    Parameter moduleMap

    Map to use as a value for MODULE_MAP

Classes

class ModuleMapLoaderModule

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

method withMap

static withMap: (moduleMap: ModuleMap) => any;
  • 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

constructor(compiler: any, 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)

        Badge

        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
          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@nguniversal/module-map-ngfactory-loader)
        • 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>