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
|
||
|---|---|---|
| .. | ||
| migrations | ||
| test | ||
| utils | ||
| BUILD.bazel | ||
| migrations.json | ||
| package.json | ||
| tsconfig.json | ||