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
|
||
|---|---|---|
| .. | ||
| migrations | ||
| ng-generate | ||
| test | ||
| utils | ||
| BUILD.bazel | ||
| collection.json | ||
| migrations.json | ||
| package.json | ||
| tsconfig.json | ||