angular-router

Installation
SKILL.md

Angular Router Skill

Rules

Router Configuration

  • Use provideRouter(routes) in app.config.ts for standalone applications
  • Define routes in a separate routes.ts file
  • Use pathMatch: 'full' for empty path redirects
  • Include wildcard route (**) as the LAST route for 404 handling

Lazy Loading

  • Use loadChildren for lazy loading feature routes
  • Use loadComponent for lazy loading standalone components
  • Do NOT eagerly import feature modules in route configuration
Related skills

More from 7spade/black-tortoise

Installs
5
First Seen
Jan 26, 2026