Skip to content
Back to skills

Angular Upgrade Router Angular Dynamic Import Lazy Routes

ASecurity

Replace Angular router string-based lazy route syntax with dynamic imports. Use when older loadChildren patterns still exist and block modern Angular routing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 2, 2026
developmenttypescriptgoangular

Security analysis

A100/100

Scanned October 2, 2026

npx -y skills add janpereira-dev/ngAutoPilot --skill angular--upgrade--router--angular-dynamic-import-lazy-routes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Upgrade Router Angular Dynamic Import Lazy Routes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular  Upgrade  Router  Angular Dynamic Import Lazy Routes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-angular-upgrade-router-angular-dynamic-import-lazy/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-angular-upgrade-router-angular-dynamic-import-lazy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: angular.upgrade.router.angular-dynamic-import-lazy-routes
name: Angular Dynamic Import Lazy Routes
description: >
  Replace Angular router string-based lazy route syntax with dynamic imports. Use when older loadChildren patterns still exist and block modern Angular routing.
stack:
  - Angular
  - TypeScript
category: router
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
  - lazy routes
  - loadChildren string
  - dynamic import routes
compatibility:
  angular:
    min: "8"
---

# Angular Dynamic Import Lazy Routes

## Purpose

Move lazy routes to dynamic imports.

## When to Use

- Route configuration still uses string-based lazy loading.
- The project is upgrading toward modern router syntax.

## When Not to Use

- All lazy routes already use dynamic imports.
- No router modernization is needed.

## Required Inputs

- route config
- lazy route modules
- routing tests

## Procedure

1. Find string-based lazy routes.
2. Replace them with dynamic imports.
3. Validate navigation behavior.

## Do

- Keep route boundaries explicit.
- Validate route loading.

## Do Not

- Do not keep string-based lazy loading.

## Review Checklist

- [ ] Lazy routes use imports.
- [ ] Routes compile.
- [ ] Tests pass.

## Expected Output

1. Lazy route migration summary.
2. Validation notes.

## Exit Criteria

- String-based lazy routes are removed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…