2d0ff0a5d3
For quite a while it is an unspoken convention to add a trailing new-line files within the Angular repository. This was never enforced automatically, but has been frequently raised in pull requests through manual review. This commit sets up a lint rule so that this is "officially" enforced and doesn't require manual review. PR Close #42478 |
||
---|---|---|
.. | ||
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 {
}