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.
- Just-In-Time compilation (JIT)
- Ahead-of-Time compilation (AOT)
The below pictures demonstrate the comparison between JIT and AOT.