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/protectedaccess - Signals:
signal(),computed()(read-only),effect()for side effects only - Signal-based
input()/input.required(),output(), andmodel()APIs - Built-in control flow (
@if/@forwith mandatorytrack/@switch) over*ngIf/*ngFor/*ngSwitch [class.*]/[style.*]bindings overNgClass/NgStyleinject()over constructor injection- Official file naming, feature-based structure, and
.spec.tstest placement
Source
Distilled from the official Angular style guide: https://angular.dev/style-guide
License
MIT