
Let’s have a closer look at angular 11 features and how it works. This post will focus on the shiny new angular 11 features included with the new version.
Faster Builds
Angular is committed to speed optimization and consistent practice with all new versions. Angular is now even faster than ever, from development to the build cycle. This was possible thanks to a few updates and changes in the compilation. It now uses TypeScript 4.0 and is faster than ever with faster processes such as the ngcc upgrade, which can now be up to four times faster. This is one of the notable latest angular updates. Angularjs Training in Chennai offers high-quality training in the newest version of angular.
Angular ESLint Updates
Angular used TSLint to lint before the latest angular version. However, TSLint has been discontinued by its creators, and they recommend that you migrate to ES Lint.
Codelyzer and TSLint have been removed from Angular’s default implementation of linting. However, you can still use angular-eslint to integrate into a project and then migrate to TSLint. It is feasible to study more about it.
Internet Explorer Updates
The new version also removes support for older versions of Internet Explorer 9 and 10, as well as the mobile version. 11 is the only IE version that is still supported. Deprecated APIs have also been removed.
Webpack 5 Support
The new version comes with opt-in experimental support for webpack. This means you can opt-in to use webpack version 5 in your project moving forward. This is Angular’s plan. It will allow faster builds and more persistent caching of the disk. Also, you can use cjs tree shaking to shrink bundle sizes and create smaller packages.
Improved Logging & Reporting
The latest angular version includes new reporting features for the builder phase. The CLI has been revised to create it easier to view logs and reports.
Attention Reader! if you want in-depth knowledge of the newest version of angular, fetch with AngularJs Online Course and get training from experienced virtual trainers.
Updated Language Service Preview
The view engine was the basis of the language service Angular, which provided tools to make building with Angular easier. The team is excited to show you a preview of Ivy’s future with a new engine and renderer. This will give you the best Angular experience and infer generic types within your templates as a TypeScript compiler. The image below shows how to infer the iterable type string.
However, these angular 11 features are still under development. You should keep an eye out for the release date in the first 11. x announcement.
Automatic Font Inlining
You can now set up automatic inlining for the first contentful painting of your app. This means that Angular will download and inline fonts linked to your project as soon as you run the ng server. It makes it even easier for everything to load up. This update is available right out of the box for Angular 11. Make sure to update your version.
Component Test Harnesses
This component test harness was available with Angular 9. It provided a readable, robust API base to test Angular material components using the supported API. The newest version of angular 11 includes harnesses for all components. Developers now have the ability to create even more test suites.
You will find many updates, performance improvements, and even new APIs. The parallel function allows you to run multiple async interactions between your components simultaneously, making it easier to deal with async activities inside tests. You can now have even more control over detection with a function such as manual change detection. This is done by disabling auto-change detections within your unit tests.
Update to Version 11
You can update a project from within your CLI using the command below:
ng update @angular/cli @angular/core
Angular
Update.angular.io has more information about updating. It’s safer to upgrade to version 11 starting with version 10.
Conclusion
Here’s a quick overview of all the shiny new features that came with Angular 11 (the long-awaited version). if you are planning to get training in the latest Angular version, step into FITA Academy, which offers unique Angular Training in Coimbatore. Auto font inlining was my favourite feature. Which one is your favourite?