logo
logo
AI Products 

Angular 13: Top New Features and Updates

avatar
Andolasoft
Angular 13: Top New Features and Updates

Angular13, the latest version of the TypeScript-based web framework was released. The release has brought several essential updates that can be useful for Angular development.


1. TypeScript 4.4 support

TypeScript 4.4 support is now available in Angular 13. It means now we can use many fantastic language features. Moreover, they stopped supporting TypeScript 4.2 and 4.3 also. One breaking change in TypeScript 4.4 that is advantages for Angular apps is that it no longer implements setters and getters to get a similar type.


The significant highlights of TypeScript 4.4 are:

  • Improved detection of type guards.
  • Default catch variables.
  • Faster incremental builds.
  • The control flow of conditions can be analyzed
  • Symbol and template string pattern index signatures.

 

2.  Version 7.4 of RxJS

The Angular 13 update adds RxJS, a reactive extension for JavaScript and includes all versions of RxJS up to and including version 7.

 

For apps created with ng new, RxJS 7.4 has become the default.

 

Existing RxJS v6.x apps will need to be manually updated with the npm install [email protected] command. You can always rely on RxJS 7 for new project creation. As for migrations, existing projects should keep on RxJS 6.


3. 100% Ivy and No More Support for View Engine

The legacy View Engine is no longer supported. Now that there is no View engine specific metadata or older output formats, it eliminates the codebase complicacy and maintenance costs. Ivy is now the only view engine supported by Angular. Ivy can now compile individual components independently of one another, which significantly improves performance and accelerates development times.

 

By removing the View Engine, Angular can reduce its reliance on ngcc too. There is no more requirement of using ngcc (Angular compatibility compiler) for the libraries created using the latest APF version. The development team can expect quicker compilation as there is no more requirement for metadata and summary files.


Read more on Angular 13


collect
0
avatar
Andolasoft
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more