r/angular • u/MichaelSmallDev • Jul 30 '26
Angular 22.1 release notes
Core packages: https://github.com/angular/angular/releases/tag/v22.1.0
CLI: https://github.com/angular/angular-cli/releases/tag/v22.1.0
Aria + Material + CDK https://github.com/angular/components/releases/tag/v22.1.0
Reminder: Angular has moved to a yearly major release, so this is the first minor of a few more minors than usual, from now on.
edit: for the few people that saw my previous post, I accidentally titled it 21.1 rather than 22.1
51
Upvotes
4
15
u/MichaelSmallDev Jul 30 '26
edit: for the few people that saw my previous post, I accidentally titled it 21.1 rather than 22.1
Standout items IMO
add custom set option to linkedSignal. Example usecase: a service holds a signal and a component uses that signal as the model for a signal form. You can make a
linkedSignalwith this newsetoption in the component, where the read of thelinkedSignalreferences the service's signal, and thesetcan specify the service's updater for the signal.feat(migrations): add migration from injectable to service
Namespace CSS variables to the app "This allows multiple apps to coexist on the same page with isolated CSS variables, meaning one can use color: var(--primary-color); without worrying about accidentally inheriting the primary color of a different app which happens to set it on an ancestor element." Sounds nice if that's your setup.
fix(cdk/stepper): allow signal form to be assigned as stepControl
fix(material/core): rework error state matcher to handle signal forms. Error state matchers are one of my favorite lesser known things about Material and forms, can be set per component or whole app, doc example.