26 lines | 828 Bytes

angular

Modern Angular conventions for AI agents — standalone components, signals, and the official style guide.

npx rulepack add angular

What it covers

  • Standalone-by-default components, member ordering, readonly / protected access
  • Signals: signal(), computed() (read-only), effect() for side effects only
  • Signal-based input() / input.required(), output(), and model() APIs
  • Built-in control flow (@if / @for with mandatory track / @switch) over *ngIf / *ngFor / *ngSwitch
  • [class.*] / [style.*] bindings over NgClass / NgStyle
  • inject() over constructor injection
  • Official file naming, feature-based structure, and .spec.ts test placement

Source

Distilled from the official Angular style guide: https://angular.dev/style-guide

License

MIT