AngularJS路由混合迁移
janpereira-dev2026-10-26查看 1450复制 822
> 在迁移期间两个框架必须共存时,将路由从 AngularJS 迁移到 Angular 与 AngularJS 的混合设置。当路由所有权被拆分且导航需要显式桥接处理时使用。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1464 chars
---
id: angular.upgrade.angularjs.angularjs-routing-hybrid-migration
name: AngularJS Routing Hybrid Migration
description: >
Move routing from AngularJS to a hybrid Angular and AngularJS setup when both frameworks must coexist during migration. Use when route ownership is split and navigation needs explicit bridge handling.
stack:
- Angular
- AngularJS
category: angularjs
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
- AngularJS routing migration
- hybrid routing
- ui-router bridge
- Angular Router coexistence
compatibility:
angular:
min: "2"
---
# AngularJS Routing Hybrid Migration
## Purpose
Coordinate route migration between AngularJS and Angular.
## When to Use
- AngularJS and Angular routes coexist.
- Navigation must cross framework boundaries.
## When Not to Use
- Only one router remains.
- Routing is already fully migrated.
## Required Inputs
- route tables
- route ownership map
- navigation guards or resolves
## Procedure
1. Inventory route ownership.
2. Define bridge navigation rules.
3. Validate route transitions.
## Do
- Keep ownership explicit.
- Validate deep links and redirects.
## Do Not
- Do not leave route ownership ambiguous.
## Review Checklist
- [ ] Route ownership mapped.
- [ ] Bridge navigation validated.
- [ ] Deep links work.
## Expected Output
1. Routing migration summary.
2. Route ownership map.
## Exit Criteria
- Routing is stable across framework boundaries.