Summary of the Angular 19 Release
Angular has been doing it again — breaking everything they set up over the last many years and rebuilding it.
But they have been doing a better job of making things easier to migrate than when they moved from Angular Js to Angular 2.
In case you haven't watched it you can watch it here -
In case you do not like watching videos much, here's a summary of what they said -
Components & Signals-
— Standalone will be true by default (ng update will take care of clearing the existing `standalone: true`)
— Angular is doubling down on signals
— input, model, output, viewchild, viewchildren, contentChild, contentChildren signals
are stable
— Here is a nice article on viewChild and viewChildren signals here
— Bunch of new and experimental signals they are pushing out. These will change the way we write angular code
Refactoring Tools
— Automated refactoring tools to convert existing code into signals
— ng g @angular/core:signal-input-migration moves existing inputs to signal based
inputs
— ng g @angular/core:signal-queries-migration moves view child and contentchild to
respective signals
— ng g @angular/core:output-migration updates function components to the new output signals api
Incremental Hydration
- Instead of hydrating the application all at once
— This builds upon the deferable views
— Hydration is built into chunks directly in the server and loaded into
— deferred views in the client. This is for some ultra-level optimizations
— never hydration option makes sure that no javascript is loaded for a given section,
making static content we put anywhere run much faster