---
title: "Angular Upgrade Guide: From Angular 7 to 20, One Version at a Time"
description: "A step-by-step plan for upgrading a legacy Angular app to the current version: ng update, the Ivy switch, RxJS 7, standalone components and signals."
url: https://sanderyaz.com/en/blog/angular-upgrade-guide/
author: Sander Yazıcıoğlu
date: 2026-12-02
updated: 2026-12-02
lang: en
tags: ["Angular","Frontend","TypeScript","Migration"]
---

# Angular Upgrade Guide: From Angular 7 to 20, One Version at a Time

At Testinium and Loadium I spent years on large enterprise Angular apps and moved them from Angular 7 to beyond Angular 20. A jump that big looks scary from the outside, but done in the right order it is a manageable job where every step ends with a working app. This article is the checklist from that process.

## The golden rule: one major version at a time

Angular CLI's `ng update` runs **migration schematics**: code transformations that bring your project to the next version. They only support moving from one major version to the next. So instead of jumping from 7 straight to 20, you go 8, 9, 10 and so on.

```bash
# Example: 12 to 13
npx @angular/cli@13 update @angular/core@13 @angular/cli@13
npx @angular/cli@13 update @angular/material@13   # if you use it
```

Each step follows the same loop:

1. Upgrade core and the CLI with `ng update`.
2. Bring third-party libraries to a version compatible with that release.
3. Build, run the tests, click through the app briefly.
4. **Commit.** One major version per commit (or per pull request), so you always know where something broke.

The official guide at [angular.dev/update-guide](https://angular.dev/update-guide) lists the manual changes between any two versions. Open it before every step.

## The hard thresholds

Not every version is equally hard. In a long upgrade, most of the time goes into these steps:

### Angular 9: Ivy

Ivy is Angular's newer compiler and rendering engine. It became the default in Angular 9, and the old View Engine was removed entirely in Angular 13. The most common issues when moving to Ivy:

- Structures that are no longer needed, such as `entryComponents`.
- Old libraries that are not Ivy-compatible (you need a newer version or an alternative).
- Hidden template bugs surfaced by stricter type checking.

### Angular 12–13: saying goodbye to old libraries

Once View Engine is gone, unmaintained libraries become the biggest blocker. My approach is a simple table of every dependency in `package.json` with "last release date" and "Ivy support" columns. Pulling small, abandoned libraries into your own code is usually faster than hunting for a compatible fork.

### RxJS 6 to 7

RxJS 7 deprecated `toPromise()` in favour of `firstValueFrom` and `lastValueFrom`, and tightened some type signatures.

```ts
// Before
const user = await this.http.get<User>('/api/me').toPromise();

// After
import { firstValueFrom } from 'rxjs';
const user = await firstValueFrom(this.http.get<User>('/api/me'));
```

### Angular 14+: standalone components

Standalone components remove the need for NgModules and became the default in Angular 19. You don't have to convert an existing app overnight; the official schematic migrates it step by step:

```bash
ng generate @angular/core:standalone
```

### Angular 16+: signals

Signals are a reactive primitive that makes change detection more predictable. In the Angular 20 line most signal APIs became stable, and running without zone.js (zoneless) matured too. You don't need to adopt signals during the upgrade: upgrade first, then use signals in the components you write next.

## Groundwork that makes upgrades safe

Before you start, have these in place:

- **A test suite that runs.** Even with few unit tests, a handful of end-to-end tests for critical flows tells you whether a step broke something.
- **Bundle size tracking.** Note the main bundle size after each step. Ivy and modern builders usually shrink it; growth means something is off.
- **Strict mode, gradually.** Turn on `strictTemplates` and `strict` as separate steps in the middle of the upgrade, not at the end, so the errors stay manageable.
- **Short branches, not a feature freeze.** A months-long upgrade branch turns into merge hell. Land each major version on the main branch quickly.

## Build tooling: from Webpack to esbuild

Since Angular 17, new projects use the esbuild and Vite based **application builder** by default. Moving an older project from `@angular-devkit/build-angular:browser` to the new builder cuts build times noticeably. If you have a custom Webpack configuration, plan this step separately: not every plugin has an esbuild equivalent.

## Common mistakes

- **Skipping several major versions at once.** The schematics don't run and errors pile up together.
- **Deleting the lockfile and pulling everything to latest.** An incompatible library version slips in silently.
- **Forgetting Node.js.** Each Angular version supports a different Node range; update the Node version in CI at the same time.
- **Ignoring warnings.** Today's deprecation warning is the build error two versions from now.

## Conclusion

An Angular upgrade is not a sprint but a walk made of small, safe steps. Treat each major version on its own, keep tests and measurements in place, and even 7 to 20 stays under control. If you want to speed the app up afterwards, the [Core Web Vitals and LCP article](/en/blog/react-core-web-vitals-lcp/) applies regardless of framework.

---

About the author: [Sander Yazıcıoğlu](https://sanderyaz.com/en/about/). Sander Yazıcıoğlu is a Senior Full-Stack Developer in Istanbul. At LiveTesting he builds the backend, frontend, realtime systems and Appium automation of a real-device testing platform; before that he built enterprise Angular apps at Testinium and Loadium.
