Catalogue / angular-module-design
angular-module-design
MITSignedDesign Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of concerns.--- name: angular-module-design description: > Design Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of concerns. ---
Angular Module Design
Table of Contents
- Overview
- When to Use
- Quick Start
- Reference Guides
- Best Practices
Overview
Architect scalable Angular applications using feature modules, lazy loading, services, and RxJS for reactive programming patterns.
When to Use
- Large Angular applications
- Feature-based organization
- Lazy loading optimization
- Dependency injection patterns
- Reactive state management
Quick Start
Minimal working example:
// users.module.ts
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { ReactiveFormsModule } from "@angular/forms";
import { UsersRoutingModule } from "./users-routing.module";
import { UsersListComponent } from "./components/users-list/users-list.component";
import { UserDetailComponent } from "./components/user-detail/user-detail.component";
import { UsersService } from "./services/users.service";
@NgModule({
declarations: [UsersListComponent, UserDetailComponent],
imports: [CommonModule, ReactiveFormsModule, UsersRoutingModule],
providers: [UsersService],
})
export class UsersModule {}Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Feature Module Structure | Feature Module Structure | | Lazy Loading Routes | Lazy Loading Routes | | Service with RxJS | Service with RxJS | | Smart and Presentational Components | Smart and Presentational Components | | Dependency Injection and Providers | Dependency Injection and Providers |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 2.4 kB | 118186c84423 |
| SKILVAULT_SOURCE.json | 1.9 kB | 2185d85c5e65 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | ad2a48bad631 |
| references/dependency-injection-and-providers.md | 1.0 kB | 0eee21961fa1 |
| references/feature-module-structure.md | 725 B | f2771cbc2fb7 |
| references/lazy-loading-routes.md | 745 B | a434feaba325 |
| references/service-with-rxjs.md | 2.0 kB | 118d6aed4870 |
| references/smart-and-presentational-components.md | 1.7 kB | 42c4ec07f951 |
| templates/component-template.tsx | 318 B | d40c576737ae |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 3f5182cfd739 | 20 Nov 2026 |
Locking a skill to one version needs Pro.