What is aot compilation? Why use in angular 2?



What is aot compilation? Why use in angular 2?..

Answer / Amit Kumar Rathaur

Ahead-of-Time (AOT) compilation in Angular 2 precompiles the TypeScript templates and JavaScript code into optimized, executable JavaScript. This improves performance by eliminating runtime checks, reducing file size, and enabling better tree shaking. It is recommended to use AOT compilation with production builds for optimal performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are promises in angularjs?

1 Answers  


Why we use routing in angularjs?

1 Answers  


What is components in angular 2?

1 Answers  


How to open and close modal popup using typescript and bootstrap?

1 Answers  


How do jit compilers work?

1 Answers  


What is forms in angular?

1 Answers  


What is service factory?

1 Answers  


What is Component in Angular Terminology?

1 Answers  


How to do email and phone no. Validation in angularjs?

1 Answers  


What are decorators?

1 Answers  


What are angular global apis?

1 Answers  


What is $log Service?

1 Answers  


Categories