Google News
logo
Angular - Interview Questions
List the Differences Between Just-In-Time (JIT) Compilation and Ahead-Of-Time (AOT) Compilation
With JIT, the compilation happens during run-time in the browser. It is the default way used by Angular. The commands used for JIT compilation are –
ng build ng serve 
 
In AOT compilation, the compiler compiles the code during the build itself. The CLI command for aot compilation is -
ng build --aot ng server –aot
 
AOT is more suitable for the production environment whereas JIT is much suited for local development.
Advertisement