Member-only story
Angular 22 Changed Something We Used to Configure in Every Component
Bestte
4 min read1 hour ago
The most interesting part of Angular 22 might be what we no longer have to write.
Press enter or click to view image in full size
For years, Angular developers have been adding the same line to their components:
changeDetection: ChangeDetectionStrategy.OnPush
It became one of those things you almost stopped thinking about.
Create a component. Add OnPush. Move on.
Some teams even built it into their component templates so nobody had to remember it.
And now, with Angular 22, that line is no longer necessary in new applications.
OnPush is the default.
It sounds like a small change. One less property in a decorator.…