What is AOT compilation?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by Sam Chadwick

    AOT is the process of compiling high-level languages like CIL, C, C++, ES6, typescript, Javascript or Java bytecode, etc. It refers to the Ahead Of Time which converts the typescript and Angular HTML into javascript codes. The function of AOT is to enhance the performance within build time and is capable of catching template errors. There are several benefits of using the AOT compiler as it allows faster rendering, fewer asynchronous requests, smaller angular framework download size, detect template errors as early as possible and provides better security. If you want to prepare an offline compilation then you should follow all relevant steps. Application bootstrapping can also get changed by the approach of AOT.

Related Questions

Please Login or Register to leave a response.

Related Questions

Angular 2 Interview Questions

What is Angular 2 ?

Angular 2 is a completely revived component-based framework in which an application is a tree of loosely coupled compon..

Angular 2 Interview Questions

List some advantages of Angular 2 over Angular1.

Angular 2 is a re-written version of Angular1 and not an update. The best way to compare Angular 2 and Angular 1 is by f..

Angular 2 Interview Questions

What are the new features of Angular 2?

Angular 2 is a platform that encompasses a wide range of capabilities. Some new features were added in Angular 2 which i..