angular-best-practices

Installation
Summary

Angular 21 development with signals, standalone components, reactive patterns, and strict TypeScript typing.

  • Use standalone components with ChangeDetectionStrategy.OnPush, input()/output() functions, and computed() for derived state instead of decorators and ngClass/ngStyle
  • Manage async data with resource() for signal-based fetching, handling loading/error states via hasValue() and status checks
  • Build templates with native control flow (@if, @for, @switch), async pipes, and avoid arrow functions or template logic
  • Inject services with inject() function, implement lazy loading for routes, and use Tailwind 4.1 for styling
  • Ensure WCAG AA accessibility compliance including focus management, color contrast, and ARIA attributes
SKILL.md

Angular 21 Best Practices

TypeScript

  • Use strict type checking
  • Prefer type inference when type is obvious
  • Avoid any; use unknown when type is uncertain

Components

Related skills

More from boise-state-development/agentcore-public-stack

Installs
689
GitHub Stars
9
First Seen
Jan 25, 2026