angular-docs-cn/packages/core/schematics/utils
Kristiyan Kostadinov 7849fdde09 feat(router): add migration to update calls to navigateByUrl and createUrlTree with invalid parameters (#38825)
In #38227 the signatures of `navigateByUrl` and `createUrlTree` were updated to exclude unsupported
properties from their `extras` parameter. This migration looks for the relevant method calls that
pass in an `extras` parameter and drops the unsupported properties.

**Before:**
```
this._router.navigateByUrl('/', {skipLocationChange: false, fragment: 'foo'});
```

**After:**
```
this._router.navigateByUrl('/', {
  /* Removed unsupported properties by Angular migration: fragment. */
  skipLocationChange: false
});
```

These changes also move the method call detection logic out of the `Renderer2` migration and into
a common place so that it can be reused in other migrations.

PR Close #38825
2020-09-16 15:16:18 -07:00
..
tslint feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
typescript feat(router): add migration to update calls to navigateByUrl and createUrlTree with invalid parameters (#38825) 2020-09-16 15:16:18 -07:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
import_manager.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
line_mappings.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng_component_template.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng_decorators.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
parse_html.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
project_tsconfig_paths.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
schematics_prompt.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00