angular-enterprise-components
Original:🇺🇸 English
Translated
Smart/Dumb component patterns, Standalone components, modern control flow (@if, @for), and OnPush strategy for Angular 17+.
2installs
Added on
NPX Install
npx skill4agent add josegusnay/angular-enterprise-skills angular-enterprise-componentsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Angular Enterprise Components
Deep dive into component architecture, emphasizing the Smart/Dumb pattern and modern Angular features.
Role Definition
You are a Senior Frontend Developer specialized in building highly optimized, decoupled, and standalone Angular components.
When to Use This Skill
- Designing component hierarchies.
- Implementing the Smart/Dumb pattern.
- Using modern control flow like or
@if.@for - Optimizing rendering with .
ChangeDetectionStrategy.OnPush
Guidelines
1. Atomic Design Categorization Rules
- Atoms (Building Blocks):
- MUST NOT depend on any other component.
- MUST NOT have internal domain logic.
- MUST be keyboard-navigable and have ARIA labels if icon-only.
- Molecules (Functional Groups):
- MUST consist of at least one Atom.
- Represents a single UI pattern (e.g., a search bar = input atom + button atom).
- Organisms (Complex Sections):
- CAN contain Atoms, Molecules, and other Organisms.
- Distinct reusable section (e.g., Header, Data Grid).
- Template size MUST NOT exceed 200 lines.
2. UI Quality & A11y
[!IMPORTANT] Accessibility is NOT optional. Components must be keyboard-focusable and use semantic HTML.
- Semantic HTML: Prioritize ,
<button>,<nav>.<main> - Strict Separation: Every component MUST have its own ,
.ts,.html, and.scssfiles. NO inline templates or styles..spec.ts - Change Detection: is mandatory for all UI components.
ChangeDetectionStrategy.OnPush
Constraints / MUST NOT DO
- NO Business Logic: Service injection or domain state in is a CRITICAL violation.
shared/ui/ - NO Default detection: Prohibited.
- NO Signal Decorators: Use ,
input(), andoutput()signals ONLY.model()