Thursday, October 29, 2020

What's new in Angular 10?

 Angular 10

Version 10 of Angular is the latest release of all its versions. There are high possibilities of it being the final release of the google-developed, typescript based framework’s newest version. Version 10 witnessed many updates and depreciation; therefore, in the comparison between Angular 9 and Angular 10, the latter is smaller since it focuses majorly on quality tools and ecosystem instead of offering new features. 

Nevertheless, let’s look at some of the features its offers:

  • Compiler update:

The Angular 10 wraps the actual ngtsc compiler via the compiler interface. Angular language service, dependency information, and ng-content selectors are yet another add on to the metadata, propagating the cost span of the ExtensionBinding of the micro syntax expression.

  • Performance Improvements:

Angular 10 offers a drastic improvement in the application’s performance since it reduces the entry point’s size. Therefore, applications developed with Angular 10 are expected to perform better than that developed with any older versions.

Moreover, the compilation of basePaths and caching of the dependencies further enhances an Angular 10 app’s performance. 

  • TypeScript 3.9, TSLib 2.9 and TSLint v6:

This one highlight is majorly considered when formulating a comparison between Angular 9 and Angular 10. Compared to the older version that uses typescript 3.7, Angular 10 has come up with an upgrade to typescript 3.9, where the team behind it has focused majorly on polishing the app performance, enhancing the speed providing stability to the technology. The typescript 3.9 provides completions, error-checking, speeding up the compiler, quick fixes, and incredible editing experience. 

The newest version, Angular 10, can also seamlessly function with TSLint v6 and TSLib 2.9. 

Major Changes in Angular 10:

There are a few changes that transpose the whole ecosystem of Angular 10: 

  1. The logic is updated so that the time is matched within the day; this period is extending past midnight. This will affect applications that use either DatePipe or formatDate () or the b and B format codes.
  2. The NPM in Angular 10 does not contain the positive jsdoc remarks required to assist the necessary advanced optimization for a closure compiler. The closure compiler uses a higher off absorbing Angular app’s built, which are direct sources rather than ingesting variations of NPM.
  3. Any resolver coming back to empty will abort navigation. And for turning this on, the programmer will have to update the resolver to modify the vale, such as default. 

No comments:

Post a Comment

Why Should Product Owners Go for Angular Web Development?

  Developed by Google, Angular JS is an open-source, JavaScript framework known for emphasizing code quality and testability. The main objec...