Angular 9 Moves To Ivy
Written by Kay Ewbank   
Monday, 10 February 2020

Angular 9 has been released with improvements to the framework, Angular Material, and the CLI. This release also moves over to the Ivy compiler and runtime by default, and introduces improved ways of testing components.

Angular is a is a TypeScript-based web application framework. It is open source, and can be used for building JavaScript apps and dynamic web pages. It has gained widespread support partially because it's a good framework, and partially because of the work on its development by a team at Google.

angular

The headline change to version 9 is the adoption of the Ivy compiler and runtime as the default. This should result in smaller bundle sizes, faster testing and better debugging, along with improvements to CSS class and style binding and type checking. Build times are also improved.  The smaller bundle sizes are achieved by Ivy removing parts of Angular that aren’t being used via tree-shaking, and generating less code for each Angular component.

The move to Ivy adds new tools for debugging applications. When running an application in Dev Mode with the Ivy runtime, you get a new ng object for debugging that exposes a set of functions in the global namespace which are useful for debugging the current state of your application. You can also now ask Angular for access to instances of your components and directives, and manually call methods and update state.

CSS handling is another area that's been improved. In earlier releases, if an application contained competing definitions for a style, those styles would destructively replace each other. With Ivy, the styles are merged in a predictable way.

Type checking is another area to have been improved. The Angular compiler can now check more types and can apply more strict rules. This should help developers catch bugs earlier in the development process. Angular 9 is available for download from the Angular site. 

 

angular

More Information

Angular Site

Related Articles

Angular 8 Adds Default Differential Loading  

Angular Jumps To Version 4  

Angular 2.0.0 Launched 

AngularJS 2.0 Is Radically Different

 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


GR00T Could Be The Robot You Have Always Wanted
27/03/2024

We may not have flying cars, but we could well soon have robots that match up to predictions for the 21st century. Nvidia has announced GR00T, a cleverly named project to build robots using foundation [ ... ]



Quadrupedal Parkour
31/03/2024

What is it with robots and parkour? First Atlas and now ANYmal want to impress us with their prowess. For the roboticist, however, emulating the skills of free running can enhance the capabilities of  [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 10 February 2020 )