mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
As of Angular v15, the deprecated `relativeLinkResolution` config option of the Router is removed. This migration cleans up (removes) the `relativeLinkResolution` fields from the Router config objects in applications code.
```ts
import { RouterModule } from '@angular/router';
RouterModule.forRoot([], {
relativeLinkResolution: 'legacy',
enableTracing: false,
});
```
```ts
import { RouterModule } from '@angular/router';
RouterModule.forRoot([], {
// the `relativeLinkResolution` is removed
enableTracing: false,
});
```
PR Close #47604
|
||
|---|---|---|
| .. | ||
| google3 | ||
| all-migrations.spec.ts | ||
| BUILD.bazel | ||
| entry_components_spec.ts | ||
| helpers.ts | ||
| path_match_type_spec.ts | ||
| project_tsconfig_paths_spec.ts | ||
| relative_link_resolution_spec.ts | ||
| router_link_with_href_spec.ts | ||
| typed_forms_spec.ts | ||