Project rules
Angular Rules
Project rules for Angular: standalone components, signals, typed reactive forms, safe RxJS subscriptions and TestBed component tests.
1Components
2- Standalone components only; do not create new NgModules. Set `changeDetection: ChangeDetectionStrategy.OnPush` on every component.
3- Use `input()`, `output()` and `model()` for the component API, `signal` and `computed` for state, and `effect` rarely and only for side effects.
4- Write templates with `@if`, `@for` (always with `track`) and `@switch`. Keep logic out of templates; do not call methods that do work from bindings.
5- Keep components presentational where possible. Smart containers talk to services; dumb ones take inputs and emit outputs.
angulartypescript
Angular Rules
Project rulesangular
Free