What problem does it solve?
Configuring robust and scalable navigation in Angular applications can be error-prone and verbose. This Skill provides practical patterns for implementing lazy loaded routes, functional guards, resolvers, and route parameters to streamline the setup.
Core Features & Use Cases
- Lazy loading: load feature modules on demand to optimize initial bundles.
- Guards & authentication: implement functional guards to protect routes.
- Resolvers & data loading: fetch data before route activation for smoother UX.
- Route parameters with signals: read and react to route params using signals for dynamic UI.
- Nested routing & routing data: compose complex navigations with child routes and route data.
Quick Start
Create a sample routing module that lazy-loads a feature, adds an auth guard to protect a route, and implements a component that consumes route parameters via signals. Define a route that lazy-loads the module, protect it with the guard, and implement a UserDetail component that reads an id parameter as a signal to render content.