A solid reference for Angular's routing system that covers the modern functional approach introduced in recent versions. You'll want this when setting up navigation, guards, or lazy loading in Angular 21 projects. The skill pushes you toward the newer patterns like functional guards with inject() and provideRouter() over the old class-based RouterModule setup, which is the right call. Includes practical examples for common scenarios like auth guards, route resolvers, and component input binding from route params. The lazy loading guidance alone could save you significant bundle size if you're not already doing it. Good for both greenfield projects and knowing what to migrate toward in existing apps.

skills.sh installs
172
GitHub stars
7
last updated
Aug 21, 2026

Install

$ npx -y skills add oguzhan18/angular-ecosystem-skills --skill angular-router --agent claude-code

Installs into .claude/skills of the current project.

Files

@angular/router

Version: Angular 21 (2025) Tags: Routing, Navigation, Guards, Lazy Loading, SPA

References: Docs — official routing guide • API • GitHub

API Changes

This section documents recent version-specific API changes.

  • NEW: Functional guards and resolvers — Prefer functional approach over class-based guards source

  • NEW: Router inputs — New way to pass data to components via route inputs source

  • NEW: withComponentInputBinding — Enable component input binding from route params

  • NEW: Router snapshots improvement — Better type safety for route parameters

  • NEW: provideRouter() — Modern router configuration with functional providers

  • DEPRECATED: RouterModule.forRoot() — Use provideRouter() in modern applications

Best Practices

  • Use lazy loading for feature modules — Reduce initial bundle size by 50-70%

Sponsors

Details

Repository
github.com/oguzhan18/angular-ecosystem-skills
Category
Frontend Development
First seen
Jun 3, 2026

More from oguzhan18/angular-ecosystem-skills

All 45
1tuziapi avatartuzi-markdown-to-htmltuziapi/tuzi-skills将 Markdown 转换为带样式的 HTML,支持微信公众号兼容主题。支持代码高亮、数学公式、PlantUML、脚注、提示框和信息图。当用户要求 "markdown to html"、"md转html"、"转换为html" 时使用。164skills.sh installs
2nexu-io avatarhtml-ppt-taste-editorialnexu-io/open-design16:9 HTML deck in editorial-minimalist taste. Warm cream slides, serif display + grotesque body, hairline rules, monospace meta, generous macro-whitespace, one 160skills.sh installs
3bobmatnyc avatarreact-state-machinesbobmatnyc/claude-mpm-skillsBuilding reusable React state machine skills with XState v5 and the actor model158skills.sh installs
4kingdee avatarkwc-react-developmentkingdee/kwc-skills【由 kwc-project-scaffold 调度】仅负责 React 组件代码编写,不直接承接用户需求,不创建文件。所有 KWC 需求和文件创建必须先经 kwc-project-scaffold。158skills.sh installs
5teachingai avatarant-design-reactteachingai/full-stack-skillsant design react147skills.sh installs
6guanyang avatarfrontend-designguanyang/antigravity-skillsfrontend design144skills.sh installs