Angular & Signals (283 Qs)•Part 4: JIT vs AOT Compilation, Metadata & TypeScript (76 - 100)
What are different types of compilation in Angular?
Angular offers two ways to compile your application,
- Just-in-Time (JIT)
- Ahead-of-Time (AOT)
Practical Code Example
text
// Angular Compilation Modes:
// 1. JIT (Just-In-Time): Compiles templates in browser runtime (used in legacy development)
// 2. AOT (Ahead-of-Time): Compiles templates during build time before deployment (standard)