@angular/core
Version:
Angular - the core framework
29 lines (28 loc) • 997 B
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NgModuleFactory } from './ng_module_factory';
/**
* Used to load ng module factories.
* @stable
*/
export declare abstract class NgModuleFactoryLoader {
abstract load(path: string): Promise<NgModuleFactory<any>>;
}
/**
* Registers a loaded module. Should only be called from generated NgModuleFactory code.
* @experimental
*/
export declare function registerModuleFactory(id: string, factory: NgModuleFactory<any>): void;
export declare function clearModulesForTest(): void;
/**
* Returns the NgModuleFactory with the given id, if it exists and has been loaded.
* Factories for modules that do not specify an `id` cannot be retrieved. Throws if the module
* cannot be found.
* @experimental
*/
export declare function getModuleFactory(id: string): NgModuleFactory<any>;