Angular 9 - Now Available. Features and How to update to Angular version 9?

2 minute read

This release switches you to the new Ivy compiler and run time by default. This is one of the biggest updates to Angular in the past 3 years. It’s recommended to update your application to the final release of Angular 8.

First, update your existing angular project to the latest version of Angular 8,  ng update @angular/cli@8 @angular/core@8 

You can update now to Angular 9,  ng update @angular/cli @angular/core 

The key changes with this update, 

  1. Angular 9 now compiles with Ivy by default 
  2. Typescript 3.4 and 3.5 are not supported. Upgrade to Typescript 3.7. 

Read more changes here - Angular-updating-to-version-9 


The advantages of using the Ivy compiler and runtime,

  1. Smaller bundle size
  2. Improved type checking
  3. Improve build errors
  4. Improved build times
  5. Improve debugging and more…
Ivy Size improvements

Ivy offers a faster and stronger type safety. Compare to Version 8, this will give you detailed error messages.

Ex: In version 8 with view engine, the compiler error would looks like the following,

Angular - 8 compiler error

In version 9 with Ivy, the same compiler error look like this,

Angular 9 - Compiler detailed error

I can feel the pain, how we suffered to locate the error up to Version 8. The new version eases the work and locates the error for us.

The angular team have worked a lot to improve the compiler performance and the improvements are near 40%.

There are a lot more improvements that have been done. You can read the full documentation in Angular.IO.

Leave a comment