Edition 24/03: Angular 17.1
Angular 17.1 was released according to plan. Signal Inputs are its main feature.
As the name says, components get their input value as a Signal. Instead of the decorator @Input, we use a function called input. We can now react to changes in the form of computed, effect or just get the value directly from the Signal.
Three flavors are available:
Transformation functions for type mapping and parameter binding from the router are also possible.
For testing, the web test runner is available in an experimental mode. It will replace Karma, which runs Jasmine tests inside of the browser. There are no plans to replace Jasmine.
To use the Web Test Runner:
More information in the commit's description:
There was some speculation about support for zoneless applications. We can disable zone.js and use a new scheduler to trigger the CD in markForCheck (which runs in the async pipe, handled DOM Events, immutable input property changes, or Signal changes).
To activate the new scheduler, add ?provideZonelessChangeDetection() to the providers property of the bootstrapApplication call.
At the moment, the new scheduler is an internal feature. Only use it if you want to live on the bleeding edge.
ngUpdate will not migrate to Input Signals. There is, though, a community migrator from Chau N Tran :
CEO & Technologist @ This Dot Labs | Software Consulting | Google Developer Expert | Microsoft MVP | GitHub Star | RxJS Core Team | Driving business solutions and scaling tech teams
1 年Awesome rundown!
Architecte front Angular
1 年Awesome review of the latest version, great job Rainer !
Senior Software Engineer
1 年Gabriel Sotto
Google Developer Expert for Angular ??? ???? | NestJS | Blogger | ?? Content Creator | Software Architect
1 年Very detailed coverage of 17.1.0. Thanks Rainer