What is AOT compiler and how it is different with JIT?

577    Asked by MelvinForbis in Python , Asked on Jan 27, 2020
Answered by Arun Singh

AOT stands for Ahead-of-Time. AOT transpire the Angular HTML & Typescript code into efficient JavaScript code during the build process which provides the faster rendering in the browser.

JIT is the default compiler in Angular and it compiles the app in the browser during runtime.

We need to provide the -- aot option with ng build or ng serve command in CLI for AOT compilation.



Your Answer

Interviews

Parent Categories