Skip to content
Development
Skill

/angular-routing

Configure Angular Router with lazy-loaded routes, functional guards, and component input binding. Use when defining routes, lazy-loading features, creating route guards, or setting up resolvers.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill angular-routing --agent claude-code

SKILL.md

angular-routing.SKILL.md
name: angular-routing
description: Configure Angular Router with lazy-loaded routes, functional guards, and component input binding. Use when defining routes, lazy-loading features, creating route guards, or setting up resolvers.
metadata:
  triggers:
    files:
    - '*.routes.ts'
    keywords:
    - angular router
    - loadComponent
    - canActivate
    - resolver

Routing

**Priority: P0 (CRITICAL)**

1. Lazy Load All Feature Routes

  • Use `loadComponent` (standalone) or `loadChildren` (route file) for every feature route.

See [routing patterns](references/routing-patterns.md) for lazy loading and guard examples.

2. Use Functional Guards

  • Create function-based guards (`CanActivateFn`) instead of deprecated class-based guards.

See [routing patterns](references/routing-patterns.md) for functional guard implementation.

3. Enable Component Input Binding

  • Configure `withComponentInputBinding()` in `provideRouter(routes, withComponentInputBinding())`.
  • Define `input.required<string>()` in components — Angular auto-maps route params, query params, and resolve data.

4. Configure Resolvers and Titles

  • Create `ResolveFn<T>` to pre-fetch critical data before navigation.
  • Provide custom `TitleStrategy` or use `title: 'Dashboard'` in route data.

Anti-Patterns

  • **No logic in route config**: Move access control and data fetching to dedicated Guards and Resolvers.
  • **No eager feature imports**: Use `loadComponent` or `loadChildren` for all feature routes.

References

  • [Routing Patterns](references/routing-patterns.md)

Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:

  • No logic
  • deprecated
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about angular-routing.

Which coding agents can use angular-routing?
angular-routing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.