Home Angular Angular 2 What Is the difference between JIT compiler and AOT compiler?

What Is the difference between JIT compiler and AOT compiler?

The Angular compiler converts our applications code (HTML and TypeScript) into JavaScript code before browser downloads and runs that code.


JIT (Just-in-Time) –

  1. JIT compiles our app in the browser at run-time
  2. Compiles before running
  3. Each file compiled separately
  4. No need to build after changing our app code and it automatically reflects the changes in your browser page
  5. Highly secure
  6. Very suitable for local development

AOT (Ahead-of-Time)

  1. AOT compiles our app code at build time.
  2. Compiles while running
  3. Compiled by the machine itself, via the command line (Faster)
  4. All code compiled together, in lining HTML/CSS in the scripts
  5. Highly secure
  6. Very suitable for production builds

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Auto Detect Responsive Screen Sizes in Angular

Most of the time, we use CSS media queries to handle responsive, screen size changes to layout our content differently. However, there...

Angular 9 CRUD | Part 8 |Delete an Existing Product

In this article, I am going to show you how to delete a product. Create a method...

Angular 9 CRUD | Part 7 | Update an Existing Product

In this article, we will update the existing product details. Here we are using reactive forms and HttpClient for updating the...

Angular 9 CRUD | Part 6 | Create New Product

In this article, we will create a new product. Here we are using reactive forms for creating a new product. first...

Recent Comments

Sathish Kumar Ramalingam on Angular 2 Admin LTE Theme Integration