• Version 2.1.0
  • Published
  • 2 dependencies
  • MIT license


npm i ng-router-loader
yarn add ng-router-loader
pnpm add ng-router-loader


Webpack loader for `NgModule` lazy loading using the angular router



function loader

loader: typeof loader;

    function setCodeGen

    setCodeGen: (name: string, codeGen: Loader.LoaderCodeGen) => void;
    • Add a code generator that can be used in the 'loader' option.

      Parameter name

      Parameter codeGen

    Type Aliases

    type LoaderCodeGen

    type LoaderCodeGen = Loader.LoaderCodeGen;

      type ReplaceResult

      type ReplaceResult = Loader.ReplaceResult;

        type RouteResourceOptions

        type RouteResourceOptions = options.RouteResourceOptions;

          type RouterLoaderOptions

          type RouterLoaderOptions = options.RouterLoaderOptions;

            Package Files (1)

            Dependencies (2)

            Dev Dependencies (26)

            Peer Dependencies (0)

            No peer dependencies.


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

            You may also use to create a custom badge linking to

            • Markdown
            • HTML
              <a href=""><img src="" alt=""></a>