angular-20-control-flow
Installation
SKILL.md
Angular 20 Control Flow Skill
Rules
Control Flow Syntax
- Use
@if/@else/@else iffor conditional rendering - Use
@forwith mandatorytrackexpression for list iteration - Use
@switch/@case/@defaultfor multi-branch conditionals - Use
@deferfor lazy loading and code splitting - MUST NOT use structural directives:
*ngIf,*ngFor,*ngSwitch
@for Track Expression
- Every
@forloop MUST include atrackexpression - Track by unique ID:
track item.id - Track by index for static lists:
track $index - MUST NOT track by object reference