049b453149
This is a roll forward of #39082, using `ts.createIdentifier(`'legacy'`)` as a cross-version compatible way of making a single quoted string literal. Migrated code now uses single quotes, which is in line with the default linting options, so there is no lint error after migration. PR Close #39102 |
||
---|---|---|
.. | ||
google3 | ||
BUILD.bazel | ||
README.md | ||
collector.ts | ||
index.ts | ||
transform.ts | ||
update_recorder.ts | ||
util.ts |
README.md
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 {
}