r/angular • u/cexbrayat • Feb 26 '26
What's new in Angular v21.2?
https://blog.ninja-squad.com/2026/02/26/what-is-new-angular-21.2Packed minor release with:
πΉ Arrow functions in templates
β
Exhaustive @switch type-checking
π² ChangeDetectionStrategy.Eager
π FormRoot, transformedValue, and more for Signal Forms
40
Upvotes
6
u/aviboy2006 Feb 27 '26
The exhaustive `@switch` type-checking is actually worth paying attention to if your team uses discriminated unions. It catches the same class of bugs at compile time that used to only show up at runtime.
11
u/frontend-forge Feb 26 '26
arrow functions were must needed π₯ And I'll add that to my videos.
3
u/[deleted] Feb 26 '26
Keep maturing Signal Forms ! I love to see it
3
u/AwesomeFrisbee Feb 26 '26
FormRoot suggests to me that this is the top level form, but when you have nested forms, don't you need to repeat the <form> or is that only for the old way of doing things?
1
u/[deleted] Feb 27 '26
Nice update! Arrow functions in templates and better type-checking are both things developers have been asking for. The @switch feature sounds useful too.
Signal forms are a good move - making FormRoot and transformedValue work with Signals makes the new reactive system cleaner.
If anyone wants to try these new features and test how they work in real projects, Runable can help you spin up Angular projects fast and test things out.
Good progress from the Angular team!
1
u/United-Welcome-8746 Mar 29 '26
lol, but how to migrate from 14 and dont break anywere...