
Angular Best Practices
A solid reference for modern Angular development that enforces the framework's current idioms: signals over RxJS where appropriate, standalone components with OnPush detection, and the new template syntax (@if, @for). It pushes you toward input()/output() functions instead of decorators, resource() for async data, and inject() over constructor injection. The accessibility requirements (WCAG AA compliance with focus management and ARIA) are a nice touch that many framework guides skip. Works well alongside the tailwind-ui skill from the same publisher if you're building Angular frontends. Useful when you want guardrails against legacy patterns or need to onboard someone to Angular 21 quickly.
- skills.sh installs
- 758
- GitHub stars
- 22
- last updated
- Aug 21, 2026
Install
$ npx -y skills add boise-state-development/agentcore-public-stack --skill angular-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Angular 21 Best Practices
TypeScript
- Use strict type checking
- Prefer type inference when type is obvious
- Avoid
any; useunknownwhen type is uncertain
Components
- Always use standalone components (do NOT set
standalone: true— it's the default in v20+) - Set
changeDetection: ChangeDetectionStrategy.OnPush - Use
input()andoutput()functions instead of decorators - Use
computed()for derived state - Keep components small and single-responsibility
- Prefer inline templates for small components
- Use Reactive forms over Template-driven
- Use
classbindings instead ofngClass - Use
stylebindings instead ofngStyle - For external templates/styles, use paths relative to the component TS file
- Do NOT use
@HostBinding/@HostListener— use thehostobject in the decorator instead
State Management with Signals
- Use signals for local component state
- Use
computed()for derived state - Keep state transformations pure and predictable
- Do NOT use
mutateon signals — useupdateorsetinstead
For complex derived state patterns, see references/signal-patterns.md.
Resources (Async Data)
Sponsors