Scaffold an Angular feature module (or standalone feature) with lazy routing
Scanned 9/3/2026
Install to Claude Code
npx -y skills add black141312/ada --skill angular-module --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Angular Module?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/black141312-angular-module)More formats (shields.io, HTML) on the badges page.
---
name: angular-module
description: Scaffold an Angular feature module (or standalone feature) with lazy routing
category: frameworks
---
# Angular Module
Use to add a self-contained feature to an Angular app — a feature module (or standalone components) with its own components, routing, and services.
1. Generate the scaffold: `ng generate module features/<name> --routing` (or skip the module and use `--standalone` components on modern Angular).
2. Add components/services with `ng generate component features/<name>/<comp>` and `ng generate service features/<name>/<svc>`.
3. Define the feature's routes in its routing module/`routes` array, with a default child route and any guards/resolvers.
4. Wire lazy loading from the root router: `loadChildren: () => import('./features/<name>/<name>.module').then(m => m.<Name>Module)` (or `loadComponent` for standalone).
5. Provide feature-scoped services in the module `providers` (or `providedIn` a route) so they aren't global unless intended.
6. Run `ng serve`, navigate to the route, and confirm the chunk loads lazily and the feature renders.
## Rules
- Declare each component in exactly one NgModule; for standalone components, list deps in `imports` instead.
- Export only the components other modules actually use; keep internals private.
- Import `CommonModule` (not `BrowserModule`) in feature modules for `*ngIf`/`*ngFor`.
- Prefer lazy-loaded routes for features to keep the initial bundle small.
- Follow the generated file/selector naming and folder structure; don't hand-roll boilerplate the CLI produces.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!