Angular Control Flow v20 Migrator
Modernizes Angular templates by converting legacy structural directives into high-performance built-in control flow syntax.
This skill facilitates a safe, incremental migration from legacy Angular directives like *ngIf, *ngFor, and *ngSwitch to the modernized @if, @for, and @switch syntax introduced in recent versions. Designed for use after an application has reached a stable Angular 20 environment, it allows developers to refactor specific feature slices without the risk of a bulk upgrade, ensuring that structural logic remains intact while leveraging the improved performance, type safety, and developer experience of modern Angular templates.
主要功能
01Transforms *ngFor loops into @for syntax with mandatory tracking expressions
022 GitHub stars
03Validates nested template structures and explicit fallback states
04Supports incremental, slice-based refactoring to minimize regression risk
05Migrates *ngSwitch patterns to @switch, @case, and @default statements
06Converts legacy *ngIf/else directives to modern @if/@else blocks
使用场景
01Optimizing template performance by replacing heavy structural directives
02Modernizing a specific feature module after upgrading to Angular 20
03Standardizing codebases to align with modern Angular syntax best practices