angular-migration

Migrate AngularJS applications to Angular using hybrid mode and incremental component rewriting.

Updated May 20, 2026
One-click install
npx skills add https://github.com/TechCorp25/kingdom --skill angular-migration-techcorp25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-migration
Source: https://github.com/TechCorp25/kingdom/tree/main/.claude/skills/framework-migration/skills/angular-migration
Command: npx skills add https://github.com/TechCorp25/kingdom --skill angular-migration-techcorp25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Upgrading a legacy AngularJS (1.x) application to modern Angular (2+) is risky and complex, especially for large codebases that cannot afford a full rewrite. This Skill provides structured migration strategies, code conversion patterns, and hybrid-app setup guidance to modernize incrementally without stopping feature delivery. ## Core Features & Use Cases - Migration Strategy Selection: Choose between Big Bang rewrite, incremental hybrid approach with ngUpgrade, or vertical slice migration based on app size and delivery constraints. - Code Conversion Patterns: Convert AngularJS controllers, directives, and factory services into Angular components and injectable services, including routing and forms migration. - Hybrid Interop: Set up UpgradeModule bootstrap, downgrade Angular services to AngularJS, and upgrade AngularJS services into Angular via InjectionToken. - Use Case: A team maintaining a large AngularJS dashboard needs to ship new features in Angular. Use this Skill to bootstrap a hybrid app, migrate services first, then convert feature modules one at a time over several sprints. ## Quick Start Ask the AI to help migrate your AngularJS application to Angular by setting up a hybrid app and converting your first controller into an Angular component.

Frequently Asked Questions about angular-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate an AngularJS app to Angular?▼

Choose a strategy based on app size: Big Bang rewrite for small apps, incremental hybrid migration with ngUpgrade for large apps, or vertical slice for medium apps with distinct features. The hybrid approach runs both frameworks side-by-side while you migrate feature by feature.

How to convert an AngularJS controller to an Angular component?▼

Replace the $scope-based controller with a TypeScript class using @Component decorator, move scope properties to class fields, and convert $http promise calls to HttpClient Observables with subscribe. Lifecycle logic moves from controller body into ngOnInit.

Can AngularJS and Angular run in the same application?▼

Yes, using the UpgradeModule from @angular/upgrade/static. Bootstrap the Angular module first, then call upgrade.bootstrap to start the AngularJS app, allowing both frameworks to coexist while you migrate incrementally.

How do I share services between AngularJS and Angular in a hybrid app?▼

Use downgradeInjectable to expose Angular services to AngularJS, and create an InjectionToken with a factory reading from $injector to expose AngularJS services to Angular. Both directions are supported by ngUpgrade.

When should I choose a Big Bang rewrite over incremental migration?▼

Big Bang suits small applications or greenfield rewrites where parallel development is feasible and a single switchover is acceptable. Large apps with continuous delivery requirements should use the incremental hybrid approach instead.