Angular 20: New Async Redirects with Promises and Observables in Router

Опубликовано: 25 Май 2026
на канале: Igor Sedov
3,020
124

Angular 20 introduces asynchronous redirects with Promises and Observables in the Router. This new feature is useful when a redirect depends on an async result, like an API response. Now we can delay the execution of the redirect until an asynchronous task has completed.

In this video, I first briefly remind you how redirects worked before Angular 20. Then I explain how this new feature expands the Router's capabilities. If you're new to redirectTo, you may also want to check out the introductory video on redirectTo basics:    • Angular 18 New Feature: Route Redirects wi...  

ℹ️ Source: https://github.com/angular/angular/pu...

Thanks to the ‪@Angular‬ Team for the new feature. 👍

☕️ Donation:   / igorsedov  

Follow me on:
▪️Twitter:   / theigorsedov  
▪️LinkedIn:   / igorsedov  
▪️Bluesky: https://bsky.app/profile/igorsedov.com
▪️Instagram:   / theigorsedov  

Website: https://igorsedov.com
Email: [email protected]

#angular20 #angular