Community코딩 & 개발github.com

analogjs/angular-directives

Angular v20+에서 DOM 조작 및 동작 확장을 위한 맞춤형 디렉티브를 생성합니다. 속성 디렉티브, 구조 디렉티브, 호스트 디렉티브를 활용하세요.

angular-directives란 무엇인가요?

이 스킬은 Angular v20 이상에서 맞춤형 디렉티브를 생성하는 방법을 제공합니다. 개발자는 속성 디렉티브를 사용하여 요소의 동작이나 외관을 수정하고, 구조 디렉티브를 통해 포털이나 오버레이 같은 복잡한 UI 요소를 조작하며, 호스트 디렉티브로 컴포넌트 간 동작을 합성할 수 있습니다. 주로 재사용 가능한 DOM 동작 생성, 요소 기능 확장, 여러 컴포넌트에 걸친 동작 합성 시 유용합니다. 단, 제어 흐름을 위한 사용자 정의 구조 디렉티브 대신 Angular 내장 @if/@for/@switch를 사용해야 합니다. 이 스킬은 CLI 기반 도구, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용 가능하며, SKILL.md 문서를 기반으로 정확한 디렉티브 생성 및 활용법을 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/analogjs/angular-skills/tree/main/skills/angular-directives

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

angular-directives은(는) 무엇을 하나요?

Angular v20+에서 DOM 조작 및 동작 확장을 위한 맞춤형 디렉티브를 생성합니다. 요소의 동작이나 외관을 수정하는 속성 디렉티브, 포털/오버레이를 위한 구조 디렉티브, 합성을 위한 호스트 디렉티브에 사용하세요. 재사용 가능한 DOM 동작 생성, 요소 기능 확장, 컴포넌트 간 동작 합성 시 트리거됩니다. 참고 - 제어 흐름에는 사용자 정의 구조 디렉티브 대신 기본 @if/@for/@switch를 사용하세요.

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

analogjs/angular-component

Create modern Angular standalone components following v20+ best practices. Use for building UI components with signal-based inputs/outputs, OnPush change detection, host bindings, content projection, and lifecycle hooks. Triggers on component creation, refactoring class-based inputs to signals, adding host bindings, or implementing accessible interactive components.

analogjs/angular-di

Implement dependency injection in Angular v20+ using inject(), injection tokens, and provider configuration. Use for service architecture, providing dependencies at different levels, creating injectable tokens, and managing singleton vs scoped services. Triggers on service creation, configuring providers, using injection tokens, or understanding DI hierarchy.

analogjs/angular-forms

Build signal-based forms in Angular v21+ using the new Signal Forms API. Use for form creation with automatic two-way binding, schema-based validation, field state management, and dynamic forms. Triggers on form implementation, adding validation, creating multi-step forms, or building forms with conditional fields. Signal Forms are experimental but recommended for new Angular projects. Don't use for template-driven forms without signals or third-party form libraries like Formly or ngx-formly.

analogjs/angular-http

Implement HTTP data fetching in Angular v20+ using resource(), httpResource(), and HttpClient. Use for API calls, data loading with signals, request/response handling, and interceptors. Triggers on data fetching, API integration, loading states, error handling, or converting Observable-based HTTP to signal-based patterns.

analogjs/angular-routing

Implement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, protected routes, route-based data loading, and nested routing. Triggers on route configuration, adding authentication guards, implementing lazy loading, or reading route parameters with signals.

analogjs/angular-signals

Implement signal-based reactive state management in Angular v20+. Use for creating reactive state with signal(), derived state with computed(), dependent state with linkedSignal(), and side effects with effect(). Triggers on state management questions, converting from BehaviorSubject/Observable patterns to signals, or implementing reactive data flows.

analogjs/angular-ssr

Implement server-side rendering and hydration in Angular v20+ using @angular/ssr. Use for SSR setup, hydration strategies, prerendering static pages, and handling browser-only APIs. Triggers on SSR configuration, fixing hydration mismatches, prerendering routes, or making code SSR-compatible.

analogjs/angular-testing

Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns. Use for testing components with signals, OnPush change detection, services with inject(), and HTTP interactions. Triggers on test creation, testing signal-based components, mocking dependencies, or setting up test infrastructure. Don't use for E2E testing with Cypress or Playwright, or for testing non-Angular JavaScript/TypeScript code.

analogjs/angular-tooling

Use Angular CLI and development tools effectively in Angular v20+ projects. Use for project setup, code generation, building, testing, and configuration. Triggers on creating new projects, generating components/services/modules, configuring builds, running tests, or optimizing production builds. Don't use for Nx workspace commands, custom Webpack configurations, or non-Angular CLI build systems like Vite standalone or esbuild direct usage.

관련 스킬