NG.IX · Angular 22 practice question

A developer configures Angular server routing so that public product pages render per request on the server while an internal admin dashboard renders strictly in the browser. Which API lets the developer assign these per-route strategies?

Choose one answer
Check answer and explanation

Correct answer: The RenderMode setting inside the server routing configuration to choose between Server (SSR) and Client (CSR).

Explanation

Angular server routing lets you configure how individual routes render by specifying RenderMode, choosing Server (SSR) for per-request server HTML generation or Client (CSR) for browser rendering.

Common trap

Setting a hydrationStrategy property on the browser Router sounds plausible because routes are defined there, but per-route rendering modes belong to the server routing configuration via RenderMode. Configuring environment.renderTarget in angular.json is tempting because build options live there, yet Angular controls route rendering modes through RenderMode in server routing rather than a build flag.

Source: Angular docs: Server and hybrid rendering — Rendering modes
Checked against the cited text on 2026-11-25.

Report an error in this question