Angular 22.1: what's new

Angular 22.1 shipped a handful of changes worth knowing about if you're on a recent version. Here's what's in it, with code.

Signal-based queries are more flexible

You can now use viewChild and contentChild with more relaxed type inference in more places, including inside computed signals.

export class MyComponent {