Project

General

Profile

1
/**
2
 * @license
3
 * Copyright Google Inc. 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
 */
8
import { NgModuleFactory } from './ng_module_factory';
9
/**
10
 * Used to load ng module factories.
11
 * @stable
12
 */
13
export declare abstract class NgModuleFactoryLoader {
14
    abstract load(path: string): Promise<NgModuleFactory<any>>;
15
}
16
/**
17
 * Registers a loaded module. Should only be called from generated NgModuleFactory code.
18
 * @experimental
19
 */
20
export declare function registerModuleFactory(id: string, factory: NgModuleFactory<any>): void;
21
export declare function clearModulesForTest(): void;
22
/**
23
 * Returns the NgModuleFactory with the given id, if it exists and has been loaded.
24
 * Factories for modules that do not specify an `id` cannot be retrieved. Throws if the module
25
 * cannot be found.
26
 * @experimental
27
 */
28
export declare function getModuleFactory(id: string): NgModuleFactory<any>;
(6-6/11)