Angular App

Angular-App with Javascript-Typescript

Project templateframeworksMIT2 source files

Before you use this component

This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.

Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.

Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.

Source publisher
Claude Code Templates
Creator supplied by source
Not listed in source
Pinned source version
a344359459263d73d8948651c789244093c02e4e
License evidence
LICENSE

Source preview

cli-tool/templates/javascript-typescript/examples/angular-app/.claude/commands/components.md

# 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
- **Feature Components**: Components specific to business features
- **Shared Components**: Reusable UI components across the application
- **Form Components**: Reactive forms with validation and custom controls
- **Data Display**: Components for tables, lists, cards with proper data binding

## Angular-Specific Implementation

- **Template Syntax**: Proper use of Angular directives (*ngFor, *ngIf, etc.)
- **Data Binding**: Property binding, event binding, two-way binding
- **Change Detection**: OnPush strategy for performance optimization
- **Lifecycle Management**: Proper use of lifecycle hooks
- **Dependency Injection**: Service injection in component constructors
- **Testing**: TestBed configuration with proper mocking and spies

## Important Notes

- ALWAYS examine existing components first to understand project patterns
- Use the same styling approach and class naming as existing components
- Follow project's folder structure for components (usually feature-based)
- Don't install new dependencies without asking
- Consider component reusability and single responsibility principle
- Add proper TypeScript types for all component properties and methods
- Use trackBy functions for performance in *ngFor loops
- Implement proper unsubscription patterns to prevent memory leaks

Preview capped at 60,000 characters. Download the bundle for every original file and notice.

Read the redistribution license
MIT License

Copyright (c) 2025 Daniel (San) Ávila

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bundle SHA-256: 1df3afdb255c47491a2ae5af59d7b36c8afaf8ba556d4f068cc0fc1e56b9f064. Files are served as downloads and are never executed by this page.