Back to Angular

Migration Guide

Angular: 18 20

Upgrading Angular from 18 to 20

MediumEstimated time: 4-8 hours

Upgrading Angular from 18 to 20

Recommended path

Angular supports moving one major at a time (18 -> 19 -> 20). The CLI handles most of it:

# from 18
ng update @angular/core@19 @angular/cli@19
ng update @angular/core@20 @angular/cli@20

What changed across 19 and 20

  • Standalone components and the modern control flow (@if, @for) are the default direction; migrate remaining NgModule usage gradually.
  • Signals continue to replace older change-detection patterns; component code can move incrementally.
  • Zoneless change detection moved forward as opt-in; do not rush it during the version bump. For the authoritative list per major, follow the official update guide — it is generated per version pair.

Migration steps

Step 1: Update the CLI and core

Run ng update per major as shown above and commit each step separately.

Step 2: Update the ecosystem

ng update @angular/material
ng update @angular-eslint

Step 3: Fix lint and build errors

Each ng update prints the automated migrations it applied; review the diff, then run:

ng build
ng test

Compatibility checklist

  • Check each third-party library for the version pair you target.
  • Keep polyfills and builder configuration aligned with the CLI defaults.
  • CI: run builds on the new version before merging feature work.

Resources