7849fdde09
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 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
dynamic_queries_spec.ts | ||
explicit_query_timing_rule_spec.ts | ||
missing_injectable_rule_spec.ts | ||
navigation_extras_omissions_spec.ts | ||
no_template_variable_assignment_rule_spec.ts | ||
renderer_to_renderer2_spec.ts | ||
undecorated_classes_with_decorated_fields_spec.ts |