What is AOT compilation?

The Angular Ahead-of-Time (AOT) compiler converts Angular HTML and TypeScript codes into JavaScript code during the build phase before the browser can download and run the code.

Here are benefits of compiling with AOT:

  • Fast rendering
  • Lesser asynchronous requests
  • Smaller download size of Angular framework
  • Detects errors easily
  • Improved security

Note: This information is usually asked in angular 2 interview questions.

Suggest An Answer

No suggestions avaliable!

Latest post from Angular 2 Interview Questions

Ask Question