UNPKG

@schemcraft/control-flow

Version:

A schematic to replace *ngIf and *ngFor with Angular's new control flow syntax (@if and @for).

24 lines (14 loc) • 446 B
# @schemcraft/control-flow šŸ” A schematic to convert `*ngIf` and `*ngFor` to the new Angular control flow syntax (`@if`, `@for`). ## šŸ› ļø Install ```bash npm install @schemcraft/control-flow ``` ## šŸš€ Usage ```bash npx schematics @schemcraft/control-flow:control-flow-replace ``` This will update all `.html` files in your Angular project. ## āš ļø Note Supports `*ngIf`, `*ngFor`, and `*ngIf with else`. MIT Ā© Maruthupandian M