angular-routing 是做什麼的?
在 Angular v20+ 應用程式中實作路由,支援延遲載入、函式防護、解析器和路由參數。用於導航設定、受保護路由、基於路由的資料載入及巢狀路由。當需要設定路由、新增驗證防護、實作延遲載入或使用 Signal 讀取路由參數時觸發。
在 Angular v20+ 應用程式中實作路由,支援延遲載入、函式防護、解析器和路由參數。適用於導航設定、受保護路由、基於路由的資料載入及巢狀路由。當需要設定路由、新增驗證防護、實作延遲載入或使用 Signal 讀取路由參數時觸發。
這個技能專門用於在 Angular v20 及更高版本的應用程式中設定和管理路由。它支援現代 Angular 開發者利用延遲載入(lazy loading)來最佳化應用程式的初始載入時間,並使用函式防護(functional guards)來保護路由,例如驗證使用者是否已登入。此外,該技能還涵蓋了解析器(resolvers),用於在路由啟動前預先載入資料,以及如何透過 Signal 來讀取路由參數,實現更響應式的資料流。 此技能主要在需要建立或修改路由設定檔(如 app.routes.ts)時觸發,無論是新增巢狀路由、為現有路由添加驗證邏輯,還是重構應用以支援延遲載入模組,都能提供精準的協助。它支援類別式和函式式兩種路由設定方式,但優先推薦使用較新穎的函式式 API,以與 Angular 的現代化風格保持一致。 在工作流程中,開發者可以要求「為儀表板頁面新增一條延遲載入的路由」或「為設定路由添加驗證防護」,AI 將根據專案現有的路由結構生成對應的 TypeScript 程式碼。該技能也理解 Angular 17+ 引入的獨立元件(standalone components)和新控制流語法,並會自動調整生成的樣板以符合專案的慣例。
npx skills add https://github.com/analogjs/angular-skills/tree/main/skills/angular-routingInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
在 Angular v20+ 應用程式中實作路由,支援延遲載入、函式防護、解析器和路由參數。用於導航設定、受保護路由、基於路由的資料載入及巢狀路由。當需要設定路由、新增驗證防護、實作延遲載入或使用 Signal 讀取路由參數時觸發。
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.
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.
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 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.