1
|
import { Compiler } from './compiler';
|
2
|
import { NgModuleFactory } from './ng_module_factory';
|
3
|
import { NgModuleFactoryLoader } from './ng_module_factory_loader';
|
4
|
/**
|
5
|
* Configuration for SystemJsNgModuleLoader.
|
6
|
* token.
|
7
|
*
|
8
|
* @experimental
|
9
|
*/
|
10
|
export declare abstract class SystemJsNgModuleLoaderConfig {
|
11
|
/**
|
12
|
* Prefix to add when computing the name of the factory module for a given module name.
|
13
|
*/
|
14
|
factoryPathPrefix: string;
|
15
|
/**
|
16
|
* Suffix to add when computing the name of the factory module for a given module name.
|
17
|
*/
|
18
|
factoryPathSuffix: string;
|
19
|
}
|
20
|
/**
|
21
|
* NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory
|
22
|
* @experimental
|
23
|
*/
|
24
|
export declare class SystemJsNgModuleLoader implements NgModuleFactoryLoader {
|
25
|
private _compiler;
|
26
|
private _config;
|
27
|
constructor(_compiler: Compiler, config?: SystemJsNgModuleLoaderConfig);
|
28
|
load(path: string): Promise<NgModuleFactory<any>>;
|
29
|
private loadAndCompile(path);
|
30
|
private loadFactory(path);
|
31
|
}
|