Angular 13 includes Ivy enhancements

0

Angular 13 is now available, with improvements including extended functionality and Ivy-based optimizations. Ivy is the codename for Angular’s next-generation compilation and rendering pipeline.

Angular is an open source TypeScript-based web application framework that can be used to create JavaScript applications and dynamic web pages. Following the work on its development by Google, it gained wide support.

Preparation work for Ivy started in Angular 12, and the developers say in this version that they have:

“Landed some impactful changes in v13 as Ivy continues to open doors for optimizations and improvements.”

The first of these changes is actually a removal of View Engine. This is no longer available in Angular v13, which the team says is great news as Angular can continue to build Ivy-based features that boost your productivity with the platform. Removing View Engine also means that Angular can reduce its dependence on the Angular ngcc compatibility compiler in the future. The developers say removing View Engine should lead to faster compilation because metadata and summary files are no longer included.

The next changes relate to the Angular Packet Format (APF). This has been streamlined and modernized, although it does mean that some of the older output formats have been removed, including View Engine-specific metadata. Instead, it is now standardized on more modern JS formats such as ES2020. This means that libraries built with the latest version of APF will no longer require the use of ngcc, so library developers can expect lighter package output and faster execution.

The APF has also been updated to support node package exports. This will help developers not to inadvertently rely on internal APIs that can change.

The Components API has also been updated and simplified, again as part of Ivy’s improvements. Before the changes in Angular v13, dynamic component creation required a lot of boilerplate code. The new API removes the need to inject ComponentFactoryResolver into the constructor and creates the ability to instantiate the component with ViewContainerRef.createComponent without creating an associated factory.

There are also changes in the framework dependency. RxJS 7.4 is now the default for applications created with ng new, and there is now support for TypeScript 4.4.

Angular 13 is available now.

More information

Angular site

Related Articles

Angular 12 gets closer to Ivy

Angular 11 released with Byelog goal completed

Angular 9 moves to Ivy

Angular 8 adds differential loading by default

Angular upgrades to version 4

Angular 2.0.0 launched

AngularJS 2.0 is radically different

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

Banner

square

comments

or send your comment to: [email protected]



Source link

Leave A Reply

Your email address will not be published.