angular-module-setup

Community

Master Angular DI and routing patterns.

Authorcuongtl1992
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Configures and standardizes Angular dependency injection patterns, route-level providers, and code-splitting strategies to reduce boilerplate and errors in module setup.

Core Features & Use Cases

  • Inject() function usage: Replace constructor injection with inject() wherever possible to simplify lifecycle handling.
  • InjectionToken for repository ports: Define domain-level tokens to decouple domain and infrastructure layers.
  • Route-level providers: Register providers at the route level to scope dependencies to feature modules and improve tree-shaking.
  • Lazy loading and routing patterns: Use loadComponent and loadChildren to enable code-splitting and modular architecture.
  • Infrastructure provider organization: Centralize provider lists (queries, use cases, API clients, repositories) for predictable wiring.

Quick Start

Apply these patterns by wiring route-level providers and infrastructure providers in your feature module using loadComponent or loadChildren.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: angular-module-setup
Download link: https://github.com/cuongtl1992/vibe-skills/archive/main.zip#angular-module-setup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.