What is AOT compilation?
The AOT compilation converts Angular HTML and TypeScript codes into JavaScript code at some stage in the construct section earlier than the browser can down load and run the code.
Here are benefits of compiling with AOT:
- Lesser asynchronous requests
- Smaller download size of Angular framework
- Detects errors easily
- Fast rendering
- Improved security
Related Article: Top 10 Frequently Asked Interview Questions of Angular 2
BY Best Interview Question ON 24 Jun 2020