
This updates the migration to align with the style guide and work with default lint rules. It avoids a lint error on newly migrated projects and fixes a test in the CLI repo. PR Close #39070
relativeLinkResolution migration
The default value for relativeLinkResolution
is changing from 'legacy' to 'corrected'.
This migration updates RouterModule
configurations that use the default value to
now specifically use 'legacy' to prevent breakages when updating.
Before
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
@NgModule({
imports: [
RouterModule.forRoot(ROUTES),
]
})
export class AppModule {
}
After
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
@NgModule({
imports: [
RouterModule.forRoot(ROUTES, {relativeLinkResolution: 'legacy'}),
]
})
export class AppModule {
}