angular-forms 是做什么的?
使用 Angular v21+ 的新 Signals 表单 API 构建基于信号的表单。适用于创建具有自动双向绑定、基于模式的验证、字段状态管理和动态表单的表单。该技能在表单实现、添加验证、创建多步骤表单或构建带有条件字段的表单时触发。Signal Forms 虽是实验性的,但推荐用于新的 Angular 项目。请勿用于不使用 signals 的模板驱动表单或第三方表单库(如 Formly 或 ngx-formly)。
使用 Angular v21+ 的新 Signals 表单 API 构建基于信号的表单,支持自动双向绑定、基于模式的验证、字段状态管理和动态表单。
此技能专注于在 Angular v21+ 中构建基于 signals 的表单,利用实验性的 Signal Forms API。它允许开发者通过自动双向绑定、基于模式的验证、字段状态管理和动态表单创建功能来创建响应式表单。该技能在表单实现、添加验证、创建多步骤表单或构建包含条件字段的表单时自动触发。虽然 Signal Forms 仍处于实验阶段,但推荐用于新的 Angular 项目。请注意,此技能不适用于不使用 signals 的模板驱动表单,也不适用于 Formly 或 ngx-formly 等第三方表单库。
npx skills add https://github.com/analogjs/angular-skills/tree/main/skills/angular-formsInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
使用 Angular v21+ 的新 Signals 表单 API 构建基于信号的表单。适用于创建具有自动双向绑定、基于模式的验证、字段状态管理和动态表单的表单。该技能在表单实现、添加验证、创建多步骤表单或构建带有条件字段的表单时触发。Signal Forms 虽是实验性的,但推荐用于新的 Angular 项目。请勿用于不使用 signals 的模板驱动表单或第三方表单库(如 Formly 或 ngx-formly)。
This repo contains 9 individual skills — each has its own dedicated page.
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.
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.
Create custom directives in Angular v20+ for DOM manipulation and behavior extension. Use for attribute directives that modify element behavior/appearance, structural directives for portals/overlays, and host directives for composition. Triggers on creating reusable DOM behaviors, extending element functionality, or composing behaviors across components. Note - use native @if/@for/@switch for control flow, not custom structural directives.
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.
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.
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.
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.
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.
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.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.