Angular 7

Types of Compilation in Angular

Types of Compilation in Angular

Every Angular application mainly consists of components and templates as the Angular written using TypeScript language, which the browser cannot understand. Therefore, in order to get understand by the browser all the Angular applications need to be compiled first before loading or running inside the browser.

Angular framework contains two types of compilation for compiling the application.

  1. Just-In-Time compilation (JIT)
  2. Ahead-of-Time compilation (AOT)

The below pictures demonstrate the comparison between JIT and AOT.