Compilerlink
Low-level service for running the angular compiler during runtime to create ComponentFactory
s, which can later be used to create and render a Component instance.
说明
Each @NgModule
provides an own Compiler
to its injector, that will use the directives/pipes of the ng module for compilation of components.
方法
Compiles the given NgModule and all of its components. All templates of the components listed in | ||
参数
返回值 |
Compiles the given NgModule and all of its components | ||
参数
返回值
|
Same as compileModuleSync but also creates ComponentFactories for all components. | ||
参数
返回值 |
Same as compileModuleAsync but also creates ComponentFactories for all components. | ||
参数
返回值
|
Clears all caches. |
参数没有参数。 返回值
|
Clears the cache for the given component/ngModule. | ||
参数
|
Returns the id for a given NgModule, if one is defined and known to the compiler. | ||
参数
返回值
|