angular-routing

Installation
Summary

Angular v20+ routing with lazy loading, functional guards, resolvers, and signal-based route parameters.

  • Supports lazy loading of feature modules and individual components with loadChildren and loadComponent
  • Functional guards for authentication, role-based access control, and unsaved changes detection; resolvers pre-fetch data before route activation
  • Route parameters and query strings bind directly to component inputs via withComponentInputBinding(), with signal-based access to ActivatedRoute data
  • Nested routing with child outlets, programmatic navigation with Router.navigate(), and router event monitoring for navigation state tracking
SKILL.md

Angular Routing

Configure routing in Angular v20+ with lazy loading, functional guards, and signal-based route parameters.

Basic Setup

// app.routes.ts
import { Routes } from '@angular/router';

export const routes: Routes = [
  { path: '', redirectTo: '/home', pathMatch: 'full' },
  { path: 'home', component: Home },
  { path: 'about', component: About },
  { path: '**', component: NotFound },
];
Related skills

More from analogjs/angular-skills

Installs
4.8K
GitHub Stars
588
First Seen
Jan 24, 2026