[Angular 20] 3 - Routing - Asynchronous Redirect

Опубликовано: 28 Июль 2026
на канале: Dev Propulsor
206
10

In one of my previous videos on Angular version 18,
we explored the dynamic redirection feature via the redirectTo attribute.
The limitation was that this dynamic redirection function could only be synchronous.
With Angular version 20, dynamic redirection has evolved:
it now allows us to perform asynchronous redirects,
based on external factors such as an API call, a feature flag, or other conditions.
The goal of this video will therefore be to explore this evolution.

Video suggestion:
Dynamic Redirection - RedirectFunction (   • [Angular 18] 4 - Redirection Dynamique - R...  )

Content:
00:00 — Introduction
00:27 — Context: Refresher on the redirectTo functionality
04:48 — New requirements
08:33 — Implementing asynchronous redirection
13:27 — Error handling
17:18 — Conclusion