Components without an explicit changeDetection property now default to OnPush instead of the old Default (now renamed to Eager).
// Before Angular 22 — this was implicitly ChangeDetectionStrategy.Default @Component({ selector: ‘app-dashboard’, template: `<h1>{{ title }}</h1>`, }) export class DashboardComponent { title = ‘Dashboard’; }
// Angular 22 - same code is now implicitly OnPush // If you need the old behavior: @Component({ selector: 'app-dashboard', changeDetection: ChangeDetectionStrategy.Eager, // ← new name for "Default" template: `<h1>{{ title }}</h1>`, }) export class DashboardComponent { title = 'Dashboard'; }