Compiler

Compiler

Stable Class

Class Overview

class Compiler {
  compileModuleSync(moduleType: Type<T>) : NgModuleFactory<T>
  compileModuleAsync(moduleType: Type<T>) : Promise<NgModuleFactory<T>>
  compileModuleAndAllComponentsSync(moduleType: Type<T>) : ModuleWithComponentFactories<T>
  compileModuleAndAllComponentsAsync(moduleType: Type<T>) : Promise<ModuleWithComponentFactories<T>>
  getNgContentSelectors(component: Type<any>) : string[]
  clearCache() : void
  clearCacheFor(type: Type<any>)
}

Class Description

Low-level service for running the angular compiler