Compiler
클래스
사용 중단 권고
Low-level service for running the angular compiler during runtime
to create NgModuleFactory instances, which
can later be used to create and render a Component instance.
사용 중단을 권고합니다.
compileModuleSync
NgModuleFactory<T>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>>clearCache
voidClears all caches.
@returns
voidclearCacheFor
voidgetModuleId
string | undefinedReturns the id for a given NgModule, if one is defined and known to the compiler.
@returns
string | undefined설명
Low-level service for running the angular compiler during runtime
to create NgModuleFactory instances, 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.
상세 내용으로 이동