angular-router
Installation
SKILL.md
Angular Router Skill
Rules
Router Configuration
- Use
provideRouter(routes)inapp.config.tsfor standalone applications - Define routes in a separate
routes.tsfile - Use
pathMatch: 'full'for empty path redirects - Include wildcard route (
**) as the LAST route for 404 handling
Lazy Loading
- Use
loadChildrenfor lazy loading feature routes - Use
loadComponentfor lazy loading standalone components - Do NOT eagerly import feature modules in route configuration