NG.V · Angular 22 practice question

A route configures two asynchronous guards, '[authGuard, roleGuard]', that each return an Observable. How does the Angular router execute them?

Choose one answer
Check answer and explanation

Correct answer: It starts them in array order and runs them concurrently without waiting for the first to finish

Explanation

The router invokes guards in array order, but it does not wait for one asynchronous guard to finish before starting the next, so Promise- and Observable-based guards run concurrently.

Common trap

Many developers assume array order implies sequential awaiting, but Angular starts each guard immediately without blocking on earlier async results. All guards in the array are evaluated for the route rather than stopping after the first asynchronous guard.

Source: Angular docs: Control route access with guards — Applying guards to routes
Checked against the cited text on 2026-11-25.

Report an error in this question