Hey there,
Angular 19 is officially here! Well not today. Back in November 19, 2024
Following the massive momentum of v18, this release doubles down on performance, reactive patterns, and making "modern Angular" the default standard for everyone. 🚀✨
TL;DR 🙌
✅ Standalone APIs now default
✅ Stable Zoneless Change Detection
✅ Incremental hydration (developer preview)
✅ Event replay enabled by default for SSR
✅ Route-level rendering (SSR / CSR / Prerender)
✅ Signals evolution with linkedSignal and resource
✅ HMR for styles (no page refresh)
✅ New Angular Material features (Time picker, theming improvements)
✅ More developer experience and CLI improvements
How to update to version 19
Visit update.angular.io for detailed information and guidance. To have the best update experience,
Update to 19
ng update @angular/cli @angular/core In order to update your global angular,
npm i -g @angular/cli What’s in this release?
✅ Standalone APIs now default
- In v19, the standalone flag in the @Component decorator now defaults to true. This means you no longer need to type it out for every new component!
Impact: Less boilerplate and a flatter project structure.
Legacy Support: If you still need NgModules, you must explicitly set standalone: false.
@Component({ selector: 'app-modern-comp', // No 'standalone: true' needed anymore! template: `<h1>I am standalone by default</h1>`, }) export class ModernComponent {} ✅ Stable Zoneless Change Detection
After being experimental in v18, Zoneless is now production-ready. You can finally remove zone.js entirely to enjoy smaller bundles and better performance.
To enable it, update your app.config.ts:
export const appConfig: ApplicationConfig = { providers: [ provideZonelessChangeDetection() // Now Stable! ] }; ✅ Incremental hydration (developer preview)
- Hydrate only parts of the UI when needed (lazy hydration)
- Uses @defer syntax
- Improves performance by reducing initial JS load
@defer (hydrate on viewport) { <shopping-cart/> } ✅ Event replay enabled by default for SSR
- Captures user interactions before app is fully loaded
- Replays them after hydration
- Ensures better UX in SSR apps
✅ Route-level rendering (SSR / CSR / Prerender)
Define rendering strategy per route:
Server-side (SSR)
Client-side (CSR)
Prerender
export const serverRouteConfig: ServerRoute[] = [ { path: '/login', mode: RenderMode.Server }, { path: '/dashboard', mode: RenderMode.Client }, { path: '/**', mode: RenderMode.Prerender }, ]; ✅ Signals evolution with linkedSignal and resource
- Writable signal that depends on another signal
- Auto-updates when dependencies change
const options = signal(['apple', 'banana', 'fig']); // Choice defaults to the first option, but can be changed. const choice = linkedSignal(() => options()[0]); console.log(choice()); // apple choice.set('fig'); console.log(choice()); // fig // When options change, choice resets to the new default value. options.set(['peach', 'kiwi']); console.log(choice()); // peach ✅ HMR for styles (no page refresh)
- Styles update instantly without page reload
- Template HMR is experimental
- Hot module replacement for styles is enabled by default in v19! To try HMR for templates use:
NG_HMR_TEMPLATES=1 ng serve - To disable this feature specify "hmr": false as a development server option, or alternatively use:
ng serve --no-hmr ✅ New Angular Material features (Time picker, theming improvements)
- One of the most popular feature requests, with more than 1.3k 👍 on GitHub, has been a time picker component for Angular Material
<input matInput [matTimepicker]="picker"> <mat-timepicker-toggle matIconSuffix [for]="picker"/> <mat-timepicker #picker/> ✅ More developer experience and CLI improvements
👉 Command-line environment variable declaration
The most highly requested feature in the Angular CLI repository is enabling the ability to pass environment variables during build time.
Starting v19, you can use the --define flag to achieve this:
ng build --define "apiKey='$API_KEY'" Local variables in templates
- With the new block syntax for the built-in control flow and deferrable views we designed a solution which meets developers needs for local template variable declaration.
<!-- Use with a template variable referencing an element --> <input #name> @let greeting = 'Hello ' + name.value; <!-- Use with an async pipe --> @let user = user$ | async; For more let us hear it from the creators Credits : Official Announcement 😄
Changelog : Repository
