Skip to content
Back to skills

Angular Modernization Angular Control Flow V20 Migration

ASecurity

Adopt Angular built-in control flow syntax in bounded post-upgrade modernization slices after Angular 20 is stable. Use when replacing *ngIf, *ngFor, and *ngSwitch with @if, @for, and @switch in a controlled feature slice, not during a version hop.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 2, 2026
developmenttypescriptgoangularexpress

Security analysis

A100/100

Scanned October 2, 2026

npx -y skills add janpereira-dev/ngAutoPilot --skill angular--modernization--angular-control-flow-v20-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Modernization Angular Control Flow V20 Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular  Modernization  Angular Control Flow V20 Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-angular-modernization-angular-control-flow-v20-mig/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-angular-modernization-angular-control-flow-v20-mig)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: angular.modernization.angular-control-flow-v20-migration
name: Angular Control Flow v20 Migration
description: >
  Adopt Angular built-in control flow syntax in bounded post-upgrade modernization slices after Angular 20 is stable. Use when replacing *ngIf, *ngFor, and *ngSwitch with @if, @for, and @switch in a controlled feature slice, not during a version hop.
stack:
  - Angular
  - TypeScript
category: modernization
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
  - control flow migration
  - "@if"
  - "@for"
  - "@switch"
  - structural directives modernization
compatibility:
  angular:
    min: "20"
---

# Angular Control Flow v20 Migration

## Purpose

Adopt Angular built-in control flow syntax in bounded modernization slices after Angular 20 is stable.

## When to Use

- The app is already on stable Angular 20.
- The team wants to replace structural directive boilerplate incrementally.
- The change is modernization, not a version upgrade.

## When Not to Use

- The app is still in a version hop.
- The app is not on a version that supports control flow.

## Required Inputs

- templates using `*ngIf`
- templates using `*ngFor`
- templates using `*ngSwitch`
- tests for the target slice

## Procedure

1. Select a bounded feature area.
2. Replace one structural directive family at a time.
3. Keep `track` expressions deliberate.
4. Validate rendering, accessibility, and tests.

## Do

- Prefer incremental conversion.
- Keep fallback and empty states explicit.
- Validate nested template behavior.

## Do Not

- Do not convert the whole app in one pass.
- Do not mix this with a version upgrade.
- Do not change business logic while changing template syntax.

## Review Checklist

- [ ] Slice is bounded.
- [ ] Rendering is equivalent or intentionally changed.
- [ ] Tests pass.
- [ ] Remaining template debt is documented.

## Expected Output

1. Slice converted to built-in control flow.
2. Remaining structural directives.
3. Test result.
4. Follow-up list.

## Exit Criteria

- Adoption is incremental.
- The next slice is clear.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…