@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
Markdown
# @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