You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adev/src/context/guidelines.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,14 @@ Here is a link to the most recent Angular style guide https://angular.dev/style-
78
78
- Do NOT set `standalone: true` inside the `@Component`, `@Directive` and `@Pipe` decorators
79
79
- Use signals for state management
80
80
- Implement lazy loading for feature routes
81
-
- Use `NgOptimizedImage` for all static images.
82
81
- Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead
82
+
- Use `NgOptimizedImage` for all static images.
83
+
-`NgOptimizedImage` does not work for inline base64 images.
84
+
85
+
### Accessibility Requirements
86
+
87
+
- It MUST pass all AXE checks.
88
+
- It MUST follow all WCAG AA minimums, including focus management, color contrast, and ARIA attributes.
83
89
84
90
### Components
85
91
@@ -104,8 +110,11 @@ Here is a link to the most recent Angular style guide https://angular.dev/style-
104
110
105
111
- Keep templates simple and avoid complex logic
106
112
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
113
+
- Do not assume globals like (`new Date()`) are available.
114
+
- Do not write arrow functions in templates (they are not supported).
107
115
- Use the async pipe to handle observables
108
116
- Use built in pipes and import pipes when being used in a template, learn more https://angular.dev/guide/templates/pipes#
117
+
- When using external templates/styles, use paths relative to the component TS file.
0 commit comments