Overview
The Angular standards: rules for Angular.
- canMatch + Wildcard For Route Access - canMatch guards plus a
**wildcard for route access - Interface, Not Abstract Class, For Mock Swap - real and mock services share an interface, swapped via useClass
- No
$anyIn Templates - no casts or logic in templates - No Inline Templates - templates in sibling .html files
- One Component Per Folder, Flat - one component per folder, siblings flat
- One Projected Node Per Control-Flow Block - the build fails on NG8011, and a visibility check does not prove projection
- Prefer Content Projection Over Props (Angular) - ng-content slots over data props
- Projected Content Is Never Styled By The Host - projected content is styled from its own component, never through ::ng-deep
- Static Attribute, Not Literal Binding - constant strings are plain attributes, not bindings
- Track Timed Items By An Id - timed list items track by an id the item carries
- UI Copy In Template - UI copy lives in the template's matching branch
- Use Modern Angular Template APIs - built-in control flow and the signal APIs over their legacy forms, and one legacy usage starts a sweep