Skip to main content
InterviewHubPRO
Section Overview
Q78

Question 78 of 283

Part 4: JIT vs AOT Compilation, Metadata & TypeScript (76 - 100)

28%
Angular Master (283 Qs)•Part 4: JIT vs AOT Compilation, Metadata & TypeScript (76 - 100)

What is AOT?

junior LevelCode ExampleTypeScript

Ahead-of-Time (AOT) is a type of compilation that compiles your app at build time. This is the default starting in Angular 9. When you run the ng build (build only) or ng serve (build and serve locally) CLI commands, the type of compilation (JIT or AOT) depends on the value of the aot property in your build configuration specified in angular.json. By default, aot is set to true.

bash
ng build
ng serve