Hey there,
Angular 20 is officially here! Well, not today. Back in May 28, 2025
TL;DR 🙌
✅ Signals APIs fully stabilized (effect, linkedSignal, toSignal)
✅ Incremental hydration & route-level rendering now stable
✅ Zoneless moved to developer preview
✅ New async APIs: resource, streaming & httpResource
✅ Chrome DevTools integration for Angular performance
✅ Template HMR enabled by default
✅ New template syntax improvements
✅ Deprecation of *ngIf, *ngFor, *ngSwitch
✅ Experimental Vitest support
How to update to version 20
Visit update.angular.io for detailed information and guidance. To have the best update experience,
Update to 20
ng update @angular/cli @angular/core
In order to update your global angular,
npm i -g @angular/cli
🔥 What’s in this release?
✅ Signals APIs fully stabilized
- Signals are now the core reactivity model in Angular
Stable APIs include:
signal
import { signal } from '@angular/core';
const count = signal(0);
// read
console.log(count()); // 0
// update
count.set(5);
// update based on previous value
count.update(val => val + 1);
computed
👉 Automatically recalculates when dependencies change
import { signal, computed } from '@angular/core';
const price = signal(100);
const quantity = signal(2);
const total = computed(() => price() * quantity());
console.log(total()); // 200
price.set(200);
console.log(total()); // 400 (auto updates)
input
👉 Signal-based inputs for components
import { Component, input } from '@angular/core';
@Component({
selector: 'app-child',
template: `Value: {{ value() }}`
})
export class ChildComponent {
value = input<number>();
}
view queries
👉 Reactive version of @ViewChild
import { Component, viewChild, effect } from '@angular/core';
@Component({
template: `<button #btn>Click</button>`
})
export class MyComponent {
btn = viewChild('btn');
constructor() {
effect(() => {
console.log(this.btn()); // access element reactively
});
}
}
effect
👉 Runs whenever dependent signals change
import { signal, effect } from '@angular/core';
const count = signal(0);
effect(() => {
console.log('Count changed:', count());
});
count.set(1); // logs: Count changed: 1
count.set(2); // logs again
linkedSignal
👉 Like computed, but you can also set it
import { signal, linkedSignal } from '@angular/core';
const firstName = signal('Sandy');
const lastName = signal('Dev');
const fullName = linkedSignal({
source: () => `${firstName()} ${lastName()}`,
update: (value) => {
const [first, last] = value.split(' ');
firstName.set(first);
lastName.set(last);
}
});
console.log(fullName()); // Sandy Dev
fullName.set('John Doe');
console.log(firstName()); // John
console.log(lastName()); // Doe
toSignal
👉 Bridge between RxJS and Signals
import { toSignal } from '@angular/core/rxjs-interop';
import { interval } from 'rxjs';
const counter$ = interval(1000);
const counter = toSignal(counter$, { initialValue: 0 });
effect(() => {
console.log(counter()); // updates every second
});
👉 New Async APIs (Experimental)
resource
- Handles async data reactively
const userResource = resource({
params: () => ({id: userId()}),
loader: ({request}) => fetch(`users/${request.id}`)
});
✅ Incremental hydration & route-level rendering now stable
⚡ Server-Side Rendering (Now Solid)
👉 Incremental Hydration (Stable)
- Hydrate UI parts only when needed
- Improves performance significantly
provideClientHydration(withIncrementalHydration());
@defer (hydrate on viewport) {
<shopping-cart/>
}
✅ New Control Flow Syntax
- Replaces *ngIf, *ngFor, and *ngSwitch.
- ngIf/ngFor/ngSwitch are deprecated
@if (isLoggedIn) {
<dashboard />
} @else {
<login />
}
@for (item of items; track item.id;
let i = $index;
let first = $first;
let last = $last;
let even = $even;
let odd = $odd) {
<div>
{{ i }} - {{ item.name }}
@if (first) { <span>First</span> }
@if (last) { <span>Last</span> }
@if (even) { <span>Even</span> }
@if (odd) { <span>Odd</span> }
</div>
}
For more, let us hear it from the creators Credits : Official Announcement 😄
Changelog: Repository
Top comments (0)