angular
Build reliable Angular apps avoiding RxJS leaks, change detection traps, and DI pitfalls.
适合你,如果你正在开发Angular应用并想避免性能问题。
/ 通过 npx 安装 校验哈希
npx oh-my-skill add clawic/skills/angular/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- clawic/skills/angular/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify clawic/skills/angular安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
14GitHub stars
~343最小装载
~1.1K含声明引用
~1.2K文本包总量
索引托管
怎么用
商店整理自技能原文 · 版本 f825206 · 表述以原文为准它做什么
Claude会提供Angular开发的专业建议,涵盖组件架构、RxJS模式、变更检测、依赖注入、路由和表单,并帮助你避免常见陷阱,如RxJS内存泄漏和变更检测问题。
什么时候触发
当用户询问关于Angular组件架构、RxJS、变更检测、依赖注入、路由或表单等方面的问题时触发。
装好后可以这样说
Claude会解释async pipe的用法。
Claude会提示创建新引用。
技能原文 SKILL.md
When to Use
User needs Angular expertise — component architecture, RxJS patterns, change detection, dependency injection, routing, and forms.
Quick Reference
| Topic | File | |-------|------| | Components & change detection | components.md | | RxJS & subscriptions | rxjs.md | | Forms & validation | forms.md | | Dependency injection | di.md | | Routing & guards | routing.md | | HTTP & interceptors | http.md |
Common Mistakes
OnPushwith mutated objects won't trigger change detection — always create new reference:{...obj}or[...arr]@ViewChildis undefined in constructor/ngOnInit— access inngAfterViewInitor later*ngForwithouttrackByre-renders entire list on any change — addtrackByreturning stable ID- Manual
subscribe()without unsubscribe leaks memory — useasyncpipe,takeUntilDestroyed(), or unsubscribe inngOnDestroy HttpClientreturns cold Observable — eachsubscribe()fires new HTTP requestsetTimeout/setIntervaloutside NgZone — change detection won't run, useNgZone.run()or signals- Circular DI dependency crashes app — use
forwardRef()or restructure services ElementRef.nativeElementdirect DOM access breaks SSR — useRenderer2or@defer- Route params via
snapshotmiss navigation changes — useparamMapObservable for same-component navigation setValue()on FormGroup requires ALL fields — usepatchValue()for partial updates
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…