Compiler
Class
Deprecated
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.
API
Description
class Compiler {}
compileModuleSync
Compiles the given NgModule and all of its components. All templates of the components have to be inlined.
@returns
NgModuleFactory<T>
compileModuleAsync
Promise<NgModuleFactory<T>>
Compiles the given NgModule and all of its components
@returns
Promise<NgModuleFactory<T>>
compileModuleAndAllComponentsSync
Same as compileModuleSync
but also creates ComponentFactories for all components.
@returns
ModuleWithComponentFactories<T>
compileModuleAndAllComponentsAsync
Promise<ModuleWithComponentFactories<T>>
Same as compileModuleAsync
but also creates ComponentFactories for all components.
@returns
Promise<ModuleWithComponentFactories<T>>
clearCache
void
Clears all caches.
@returns
void
clearCacheFor
void
getModuleId
string | undefined
Returns the id for a given NgModule, if one is defined and known to the compiler.
@returns
string | undefined
Jump to details