NG.V · Angular 22 practice question
An engineer adds a multi-segment route `settings/account` with no colon-prefixed segments. Is this still classified as a static URL path?
export const routes: Routes = [
{ path: 'settings/account', component: AccountComponent },
];
Check answer and explanation
Correct answer: Yes, multi-segment predefined paths without dynamic parameters are static URL paths.
Explanation
Static URL paths can have multiple segments—such as `/settings/account`—as long as the path is predefined and does not depend on dynamic parameters.
Common trap
Static paths are not restricted to a single segment. Slashes separate URL segments and do not turn a static path into a parameterized route.
Source: Angular docs: Define routes — Static URL Paths
Checked against the cited text on 2026-11-27.