angular-20-control-flow
✓Angular 20 內置控制流語法(@if、@for、@switch、@defer)用於現代模板編程。在編寫具有條件渲染、循環、switch 語句或延遲加載組件的模板時使用。使用新的塊語法替換 *ngIf、*ngFor、*ngSwitch,以獲得更好的性能和類型安全性。
SKILL.md
Purpose This skill provides comprehensive guidance on Angular 20's built-in control flow syntax, which introduces new template syntax (@if, @for, @switch, @defer) that replaces structural directives with better performance, type safety, and developer experience.
| Syntax error with @ blocks | Ensure Angular 20+ and update compiler | | @for without track error | Always add track expression to @for | | @defer not lazy loading | Check bundle config and verify component is in separate chunk | | Type errors with @if | Use as alias for type narrowing |
| @empty not showing | Ensure collection signal returns empty array, not undefined |
Angular 20 內置控制流語法(@if、@for、@switch、@defer)用於現代模板編程。在編寫具有條件渲染、循環、switch 語句或延遲加載組件的模板時使用。使用新的塊語法替換 *ngIf、*ngFor、*ngSwitch,以獲得更好的性能和類型安全性。 來源:7spade/black-tortoise。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/7spade/black-tortoise --skill angular-20-control-flow- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 angular-20-control-flow?
Angular 20 內置控制流語法(@if、@for、@switch、@defer)用於現代模板編程。在編寫具有條件渲染、循環、switch 語句或延遲加載組件的模板時使用。使用新的塊語法替換 *ngIf、*ngFor、*ngSwitch,以獲得更好的性能和類型安全性。 來源:7spade/black-tortoise。
如何安裝 angular-20-control-flow?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/7spade/black-tortoise --skill angular-20-control-flow 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/7spade/black-tortoise
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01