Angular 8: What is Angular Ivy?

Technology CommunityCategory: AngularAngular 8: What is Angular Ivy?
VietMX Staff asked 3 years ago

A big part of Angular is its compiler: it takes all your HTML and generates the necessary JS code. This compiler (and the runtime) has been completely rewritten over the last year, and this is what Ivy is about. The last rewrite was done in Angular 4.0.

Ivy is a complete rewrite of the compiler (and runtime) in order to:

  • reach better build times (with a more incremental compilation)
  • reach better build sizes (with a generated code more compatible with tree-shaking)
  • unlock new potential features (metaprogramming or higher order components, lazy loading of component instead of modules, a new change detection system not based on zone.js…)