NG.V · Angular 22 practice question

Which route configuration represents a static URL path in Angular?

Choose one answer
Check answer and explanation

Correct answer: `{ path: 'settings/account', component: AccountSettingsComponent }`

Explanation

A static URL path like `settings/account` uses a predefined path string without dynamic parameters and matches that exact path.

Common trap

Paths containing `:id` or `:category/:slug` rely on dynamic route parameters and are therefore parameterized routes rather than static URL paths.

Source: Angular docs: Define routes — Static URL Paths
Checked against the cited text on 2026-11-27.

Report an error in this question