Change8

Migrating to Angular v22.0.0-next.5

Version v22.0.0-next.5 introduces 3 breaking changes. This guide details how to update your code.

Released: 3/25/2026

3
Breaking Changes
2
Migration Steps
1
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

ChangeDetectionStrategy

Breaking Changes

Issue #1

Elements with multiple matching selectors will now throw at compile time.

Issue #2

Component with undefined `changeDetection` property are now `OnPush` by default. Specify `changeDetection: ChangeDetectionStrategy.Eager` to keep the previous behavior.

Issue #3

Hammer.js integration has been removed. Use your own implementation.

Migration Steps

  1. 1
    If you relied on components having `changeDetection: ChangeDetectionStrategy.Default`, explicitly set `changeDetection: ChangeDetectionStrategy.Eager` on those components.
  2. 2
    Remove any usage of Hammer.js integration provided by Angular.

Release Summary

This release introduces new features for Signal Forms, sets Component changeDetection to OnPush by default, and removes Hammer.js integration. It also introduces compile-time diagnostics for duplicate selectors.

Need More Details?

View the full release notes and all changes for Angular v22.0.0-next.5.

View Full Changelog