Angular Components

Command

by davila7 · Added 5mo ago

Claude

Install

npx claude-code-templates@latest --command=cli-tool/templates/javascript-typescript/examples/angular-app/.claude/commands --yes

Add to Claude

claude mcp add angular-components

About

Angular Components

Create Angular components for $ARGUMENTS following project conventions.

Task

Create or optimize Angular components based on the requirements:

  1. Analyze existing components: Check current component patterns, naming conventions, and folder organization
  2. Examine Angular setup: Review project structure, module organization, and TypeScript configuration
  3. Identify component type: Determine the component category:
    • Presentation components (dumb/pure components)
    • Container components (smart components with state)
    • Feature components (business logic components)
    • Shared/UI components (reusable across features)
    • Layout components (structural components)
  4. Check dependencies: Review existing components and shared modules to avoid duplication
  5. Implement component: Create component with proper TypeScript types and lifecycle hooks
  6. Add inputs/outputs: Define @Input and @Output properties with proper typing
  7. Create template: Build HTML template with proper Angular directives and bindings
  8. Add styles: Implement component styles following project's styling approach
  9. Create tests: Write comprehensive unit tests with TestBed and proper mocking
  10. Update module: Register component in appropriate Angular module

Implementation Requirements

  • Follow project's Angular architecture and naming conventions
  • Use proper component lifecycle hooks (OnInit, OnDestroy, etc.)
  • Include comprehensive TypeScript interfaces for inputs and outputs
  • Implement proper change detection strategy (OnPush when possible)
  • Add proper subscription management with takeUntil or async pipe
  • Follow Angular style guide and project coding standards
  • Consider component performance and memory management

Component Patterns to Consider

Based on the request:

  • Smart Components: Container components that manage state and services
  • Dumb Components: Presentation components that only receive inputs

Tags

CodeAnalysisaitmplclaude-code-templates

From Our Store

View all →
Claude Code

Claude Code Power User Kit

$39+

Advanced Claude Code skills and configurations

OpenClaw

OpenClaw Business Starter Kit

$59+

Set Up Your AI Assistant in 60 Minutes