UNPKG

839 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { NgModuleFactoryLoader, InjectionToken, NgModuleFactory, Compiler } from '@angular/core';
9import { ModuleMap } from './module-map';
10/**
11 * Token used by the ModuleMapNgFactoryLoader to load modules
12 */
13export declare const MODULE_MAP: InjectionToken<ModuleMap>;
14/**
15 * NgModuleFactoryLoader which does not lazy load
16 */
17export declare class ModuleMapNgFactoryLoader implements NgModuleFactoryLoader {
18 private compiler;
19 private moduleMap;
20 constructor(compiler: Compiler, moduleMap: ModuleMap);
21 load(loadChildrenString: string): Promise<NgModuleFactory<any>>;
22 private loadFactory;
23 private loadAndCompile;
24}