events
property in FormControl, FormGroup, and FormArray for tracking changes in value, touch state, and pristine status.@defer
) and built-in control flow (@if, @for, @switch
) reached stability, improving performance by lazy-loading non-critical content and simplifying UI logic.Zone.js
entirely.--no-zone-js
.linkedSignal
and computed
signals for managing complex state dependencies with less code.//typescript
import { signal, computed } from '@angular/core';
const count = signal(0);
const doubleCount = computed(() => count() * 2);
count.set(5); // doubleCount() returns 10
@defer
, reducing initial JavaScript payload and improving Core Web Vitals.//typescript
const routes: Routes = [
{ path: '', component: HomeComponent, data: { renderMode: 'server' } },
{ path: 'about', component: AboutComponent, data: { renderMode: 'client' } }
];
@let
syntax stabilized for defining read-only template variables, simplifying async data handling and element references. //html
@let userData = userObservable$ | async;
<div>User details: {{ userData.name }}</div>
isolatedModules
support.--define
.@let
and signals.Feature | Angular 18 | Angular 19 |
---|---|---|
Change Detection | Zoneless architecture for improved performance | Continued improvements in change detection mechanisms |
Server-Side Rendering (SSR) | Component-level hydration | Incremental hydration for faster first page loads |
Reactivity Model | Introduction of Signals API | Enhanced signal-based reactivity system |
TypeScript Support | TypeScript 5.1 | TypeScript 5.6 |
Theming | Initial support for Material 3 theming | Enhanced theming API with simplified custom theme creation |
Bundle Optimization | Optimized AOT compilation and smaller bundles | Improved tree-shaking and smaller bundle sizes |
linkedSignal
and computed
signals, offering more flexibility for reactive programming.@let
syntax, and CLI enhancements (e.g., unused import warnings) make development faster and cleaner compared to Angular 18.@angular/cli @angular/core
. However, projects should verify dependency compatibility and test experimental features like zoneless mode.linkedSignal
) and developer productivity tools (e.g., HMR, @let
).