mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Before this commit, the migration was removing the `AfterRenderPhase` enum from the imports but not the comma, resulting in invalid code:
ts
```
import { , Directive, afterRender } from '@angular/core';
```
This commit fixes this by using `updateNamedImports` and `replaceNode` instead of `removeNode`.
After:
ts
```
import { Directive, afterRender } from '@angular/core';
```
PR Close #56524
|
||
|---|---|---|
| .. | ||
| google3 | ||
| after_render_phase_spec.ts | ||
| all-migrations.spec.ts | ||
| BUILD.bazel | ||
| control_flow_migration_spec.ts | ||
| helpers.ts | ||
| http_providers_spec.ts | ||
| invalid_two_way_bindings_spec.ts | ||
| project_tsconfig_paths_spec.ts | ||
| standalone_migration_spec.ts | ||