Migrating to Angular v22.0.0-next.0
Version v22.0.0-next.0 introduces 8 breaking changes. This guide details how to update your code.
Released: 3/4/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
AnimationCallbackEvent.animationCompleteprovideHttpClientprovideRouterROUTESgetAngularLibsetAngularLibgetAngularJSGlobalsetAngularJSGlobalBreaking Changes
●Issue #1
Node.js v20 is no longer supported. The minimum supported Node.js versions are now v22.22.0 and v24.13.1.
●Issue #2
Inputs/outputs are no longer bound for data prefixed attributes.
●Issue #3
The compiler will throw when there are duplicate bindings for inputs, outputs, or model bindings to the same input/outputs.
●Issue #4
Using 'in' variables in template expressions will now throw an error.
●Issue #5
The signature of `AnimationCallbackEvent.animationComplete` has changed.
●Issue #6
To maintain support for upload progress reports when using `provideHttpClient`, you must now use `provideHttpClient(withXhr)`.
●Issue #7
`provideRoutes()` has been removed. Use `provideRouter()` or `ROUTES` as a multi-token if necessary.
●Issue #8
Deprecated `getAngularLib`/`setAngularLib` have been removed; use `getAngularJSGlobal`/`setAngularJSGlobal` instead.
Migration Steps
- 1Update your minimum required Node.js version to v22.22.0 or v24.13.1.
- 2If you rely on upload progress reports with `provideHttpClient`, update your configuration to use `provideHttpClient(withXhr)`.
- 3Replace usages of `provideRoutes()` with `provideRouter()` or use `ROUTES` as a multi-token.
- 4Replace usages of `getAngularLib`/`setAngularLib` with `getAngularJSGlobal`/`setAngularJSGlobal`.
Release Summary
This release introduces significant updates including new features for idle handling in defer blocks and HTTP client improvements. Several breaking changes were made, notably updating minimum Node.js requirements and modifying compiler behavior regarding attribute binding and expression validation.
Need More Details?
View the full release notes and all changes for Angular v22.0.0-next.0.
View Full Changelog