AngularJS to Angular Migration: Step-by-Step Guide for Smooth Transition

Hands repotting a plant from a cracked pot into a blue pot

AngularJS has had no official support since December 31, 2021, yet 7.2% of developers in the Stack Overflow Developer Survey 2025 said they still work with it. If one of those apps earns your revenue, you run a framework that gets no security patches and fewer engineers each year who know it well. An AngularJS to Angular migration is the lasting fix, and it does not have to stop your roadmap.

You have three options: freeze and isolate the app, pay a third party for extended support, or move to current Angular. This guide is for the CTO or product owner making that call. It covers what AngularJS end of life means in practice, the two approaches we use, the ngUpgrade path step by step, where AI tools speed up the conversion, and what drives cost and timeline.

We have run these projects for MultiQ and Ushahidi, and at MultiQ the old app stayed live the whole time the new one grew. If you want the whole job handled for you, it sits inside our modernization of old stacks work: we keep the AngularJS app stable and ship the Angular version next to it.

The video below covers the main points in a few minutes.

How to Migrate from AngularJS to Angular - A Step-by-Step Guide

AngularJS End of Life: What It Means for Your Product

AngularJS reached end of life on December 31, 2021. The Angular team no longer ships security patches or browser fixes for it, so compliance and hiring risk grows every year you stay. Teams that still run it freeze and isolate the app, buy third-party extended support, or migrate step by step to Angular with ngUpgrade.

The Angular team confirmed the end of long-term support in a January 2022 post on the Angular blog. Nothing broke on that date and the app keeps working, but from then on the risk sits with you.

In practice, that shows up in three places:

  • Security. A new vulnerability in AngularJS core stays open unless you patch it yourself or buy the patch. Enterprise security questionnaires and audits usually ask whether you run unsupported software, and "yes" needs a compensating control you can explain.
  • Library and browser drift. Many UI kits, grids, date pickers and auth libraries built for AngularJS stopped getting releases years ago. Your team has to verify compatibility with each browser update, and you should confirm what a support vendor covers.
  • Hiring. Most engineers who know AngularJS well have moved on to newer stacks. Every year the bench gets thinner, and onboarding someone into a large AngularJS codebase gets slower.

Here is how the three options compare for a product that still earns money:

OptionWhat it buysWhat it costs
Freeze and isolateTime, for an internal tool with a short remaining lifeNo new features, tighter network and content-security rules, the risk stays
Third-party extended supportPatched AngularJS packages and a vendor to call about CVEsA yearly contract, and no roadmap: you still migrate later
Migrate to AngularA supported framework, a wider hiring pool, room for new featuresA planned project, run alongside feature work

Paid AngularJS support from third parties exists. HeroDevs Never-Ending Support for AngularJS, for example, ships drop-in patched packages with a 14-day CVE fix target; pricing is by quote. It buys time, but it does not shorten the migration you will run later.

We often combine the second and third options for clients. We keep the AngularJS app patched and stable while the migration runs, and the same team ships the new Angular code, so nobody has to learn the old app twice. Because we support and maintain your live AngularJS application during this phased hybrid migration to Angular (or React/Next.js), releases never freeze and your ongoing maintenance fee drops as legacy AngularJS modules are retired.

Which Approach in AngularJS to Angular Migration to Choose?

"Q: Is migrating from AngularJS to Angular as simple as upgrading dependencies?

A: Nope, it's not a walk in the park. While they might sound alike, it's more like trying to turn a tricycle into a spaceship: they're just not built the same way."

Oleg Kopachovets, ProCoders CEO

Once you decide to move off AngularJS, you need an upgrade plan. In our experience, some applications can only be rewritten from scratch, while others only need a gradual upgrade. These are the two approaches and the factors we discuss when we set up a plan with a client:

FactorEvolutionRevolution
Rewrite processGradual, module by moduleComplete rewrite
Code coexistenceOld and new code run in one appOnly old code serves users
Feature developmentFeatures keep shipping during the moveNew features go into the new code only
Suitable project sizeLarge projectsMedium and smaller projects
Timeframe for rewriteExtended periodShorter timeframe (2-3 months)
Development team sizeSmall teamLarger team for a set period
Old functionality during rewriteKeeps working and evolvingFrozen
Support costs for old solutionHigherNone after cutover
ArchitectureHybrid architecture to maintain for a whileClean architecture and a new design
Extra development overheadYes, for the hybrid wiringNo hybrid wiring, but parallel maintenance and cutover testing remain

Still on AngularJS? Get a migration plan with scope, risks and a timeline before you commit budget.

Revolution

A revolution is a complete rewrite. Only the old project serves users while the new code is written, and feature work on the old app is frozen. It suits medium and smaller projects that can be rewritten within an acceptable business window, for example 2-3 months.

The window can be shortened by adding more developers for a set period. The rewrite still needs extensive testing, because nothing in the new app has run in production before.

The upside is a clean architecture, freedom to rethink features and the chance to introduce a new design. Some legacy applications are so dated that this is the only sensible route. The trade-off is cost: reuse of the old code can be low or none.

Evolution

"Q: What's the second approach to migration?

A: Ah, that's the modular approach. Picture this: you're building a new skyscraper next to an old one, and they need to coexist peacefully. You can achieve this with "ngUpgrade" and "UpgradeModule." It's like renovating a house while you're still living in it. We did it for the MultiQ project, and it worked like a charm!"

Oleg Kopachovets, ProCoders CEO

Evolution is a gradual, module-by-module rewrite inside one hybrid application. ngUpgrade boots AngularJS and Angular together, bridges their two injectors through upgraded and downgraded services, and lets components from each framework render inside the other. Users see one app.

The order of work matters more than the tooling:

  1. Services first. Business logic moves into Angular services, and downgradeInjectable exposes them to the AngularJS code that still calls them. Nothing on screen changes yet.
  2. Leaf components next. Small, self-contained pieces such as buttons, cards and form fields are rewritten and downgraded into AngularJS templates.
  3. Routes last, one at a time. This is the strangler fig pattern: a route moves to Angular when everything it renders is ready, and the AngularJS version of that route is deleted.

This is how we migrate AngularJS to Angular for clients who cannot stop shipping. Features go out every sprint, and tests on both sides confirm the hybrid behaves like the old app.

The hybrid has a price. You ship two frameworks in one bundle, change detection runs across both, and the team must know both well. A hybrid that drags on for years costs more than either clean option, so set an end date and track the share of routes already moved.

Pro tip: at no point do you run two parallel applications. The new and the old code coexist in one app until the last AngularJS route is gone.

When to Rewrite vs Upgrade

Because moving from AngularJS to Angular rewrites the view layer anyway, some teams ask whether to switch to React or Vue instead. Our answer depends on three things.

  • Team and codebase. Angular keeps familiar services and dependency injection, and adds TypeScript and a different component model. It is also the only target with an official bridge, ngUpgrade. With React or Vue you split the app by route or run micro-frontends, which is workable but adds its own wiring.
  • Test coverage. With few tests, write characterization tests against the current behavior before you touch anything. That step is the same for every target.
  • Third-party AngularJS modules. Count them. Each one (ui-bootstrap, ui-grid, a date picker) needs a replacement, and the count often decides between upgrade and rewrite.

If you settle on Angular, our differences between Angular and AngularJS guide explains what changes for the team day to day. Whichever target you choose, whether modern Angular with ngUpgrade or React and Next.js route by route, our senior engineers maintain your live AngularJS app in production while migrating screens progressively so releases never freeze and your ongoing maintenance fee decreases over time.

ProCoders' CEO Advice: How to Migrate AngularJS to Angular

We asked our CEO, Oleg Kopachovets, for the tips he gives clients who plan to migrate AngularJS to Angular.

An upgrade can take more time than building a new app from scratch, because the team may need to reverse-engineer business rules nobody wrote down. When you estimate, look at how long the AngularJS app took to build and expect the transition to take at least half of that.

"Q: Can you estimate the time needed for migration?

A: Estimating migration time is like predicting the weather; it's tricky. But think of it this way, if they spent over 1,000 hours on the old app, you can't expect it to transform into a new app in less than 500 hours (or three months)."

Oleg Kopachovets, ProCoders CEO

Spend the first weeks on research, unit tests and preparation. It is also a chance to refresh the UI, but keep changes small enough that existing users still recognize the product.

You can run both frameworks without shutting the application down for months. The @angular/upgrade/static package gives you the tools:

  • UpgradeModule bootstraps the hybrid app and connects the AngularJS and Angular injectors.
  • downgradeComponent and downgradeInjectable make new Angular components and services available inside AngularJS.
  • UpgradeComponent wraps an AngularJS component so Angular templates can use it.
  • downgradeModule boots Angular lazily, which helps when performance in the AngularJS part matters most.

There is no converter that turns an old app into a clean, idiomatic Angular one. AI tools do take over a large share of the mechanical work now, which is the next section.

Where AI Helps in an AngularJS Migration

Code migration has some of the clearest public numbers on AI at scale. In Google's July 2024 report on internal code migrations, in one ID-type migration about 80% of the landed code changes were written by AI, and engineers estimated total migration time fell by 50%. Airbnb moved about 3,500 test files from Enzyme to React Testing Library in six weeks with LLM automation, against an original estimate of 1.5 years of engineering work. Amazon reports that its AI assistant saved an estimated 4,500 years of development work on internal Java upgrades.

All three cases have the same shape: a well-defined pattern, repeated thousands of times, with tests to check the result. An AngularJS codebase has plenty of that work:

  • Controllers into component classes, and .factory() or .service() into injectable Angular services
  • Template syntax: ng-repeat to @for, ng-click to (click), ng-model to [(ngModel)]
  • $http calls to HttpClient, and promise chains to typed observables
  • TypeScript types inferred from how the code uses its data
  • Test scaffolds for components that never had any

People still own the parts where a wrong guess is expensive: untangling $scope and shared state, the hybrid wiring, the order of routes, and deciding which features to drop instead of port. You can also feed a model your class or dependency diagrams for refactoring ideas, or your package.json to list outdated libraries. Treat the answers as a draft.

Our guardrails are simple. Characterization tests go in before AI touches the code. Changes go in small pull requests. Every senior engineer on our teams pairs with AI tools such as OpenAI GPT, Anthropic Claude or GitHub Copilot, and every pull request is reviewed by a person before it merges.

Pre-Migration Preparation

Before an AngularJS to Angular migration starts, take stock of the existing application. List the critical components, services and modules that will need to move, and note how they depend on each other. This tells you the scope and shows the risky parts early.

Then pick the strategy. Revolution rewrites the application from scratch; evolution migrates it module by module. The choice depends on the size of the app, its test coverage and how long the business can wait for new features.

A few preparation steps pay off on every project:

  • Update to the last AngularJS release (1.8.x), so you start from the most recent API.
  • Follow the AngularJS style guide: one component per file, controllerAs syntax and the .component() API. Code in this shape converts far more easily.
  • Move to a module bundler and add TypeScript to the build before the first Angular file appears.
  • Make sure the team knows Angular itself: its components, templates and dependency injection.

If you want an outside view first, a two-week migration assessment gives you the scope, the risks and a plan with one timeline before you commit budget.

Setting Up the Migration Environment

Start by installing the Angular CLI. It generates components, services and modules, runs the dev server and builds the app, so most of the setup work is done by its commands.

Create a new Angular project with the CLI; it becomes the base of the migrated application. The built-in dev server lets you test the app throughout the migration.

Then add the upgrade package, @angular/upgrade. It upgrades existing AngularJS components for use in Angular and lets both frameworks run in one app during the transition, so the application keeps working while you move components and services one by one.

AngularJS to Angular Migration Step-by-Step Guide from ProCoders

How do you move the solution without losing data or features? Our engineers put together the sequence below so you can see what the process looks like.

Keep in mind that this is not the final algorithm we use. Each project is different, so we always research the details and your requirements first, then choose the plan.

Step 1: Add TypeScript

Set up TypeScript with the @types/angular package, then configure the TypeScript compiler and module loading so the new code works alongside the old JavaScript.

Step 2: Move the build to the Angular CLI

Create a new build of the existing AngularJS app with the Angular CLI. Some developers configure Webpack directly instead, but in our experience that takes longer, and the CLI already handles bundling. Copy the AngularJS files into a folder of the new Angular project.

Step 3: Bootstrap the hybrid app

Use the ngUpgrade toolkit to boot both frameworks at once. From here on the migration is invisible to users: they see one app while parts of it change underneath.

Step 4: Transfer services and components

Move services and component APIs, starting with the ones that have the fewest dependencies. Downgrade the new Angular pieces so the AngularJS part of the project can use them.

Some code will need rewriting as each AngularJS component moves. Refactor the AngularJS module configuration to match the new folder structure and Angular's configuration, so the application's features stay organized and wired correctly.

Step 5: Migrate routing

Routing comes near the end. Many AngularJS apps use UI-Router, which has a hybrid package for exactly this case, so routes can move to Angular one at a time.

Step 6: Test, remove AngularJS and update

Differences between AngularJS and Angular template syntax can cause compile-time errors, so test the app after each step and check that every part follows the new architecture.

After the checks, the refactoring of AngularJS dependencies, the factories replaced with Angular services and a final round of testing, remove AngularJS from the bundle. From then on, you only need regular updates to new stable Angular versions.

Need the AngularJS app kept stable while the Angular version ships? One senior team can do both.

Understanding Angular Components

Components are the building blocks of an Angular application. Each one has a template, a component class and metadata. The template defines the user interface, the class holds the logic and data binding, and the metadata tells Angular the component's selector and dependencies.

During a migration, most of the work is turning AngularJS directives and controllers into Angular components. Data binding becomes explicit inputs and outputs, and logic that lived on $scope moves into the class. In modern Angular (Angular 19 through Angular 21+), new components are standalone by default, so you write them without wrapping each one in an NgModule. State inside components now uses Signals (signal(), computed(), effect()) for fine-grained reactivity rather than $scope digest cycles, and once the last AngularJS route is removed from the hybrid app, you can enable zoneless change detection (provideZonelessChangeDetection(), stabilized in Angular 20 and made the default for new apps in Angular 21) to drop zone.js from your bundle entirely.

Once a component is converted, it gets Angular's typed templates, Signals reactivity, dependency injection and ahead-of-time compilation. That is where the performance and maintainability gains come from.

How to Update Angular Versions

Angular publishes its release schedule and support windows on angular.dev. Plan to stay on a supported version, not to pin one forever, or you rebuild the same problem you are leaving behind.

Pro tip: make sure the version you update to is stable. The Angular update guide lists the steps for each pair of versions.

The official update flow is short:

  • Run ng update. It reports which packages have new versions.
  • Follow the steps it lists; many changes are applied automatically by its migration scripts.

Pro tip: if you need to jump several major versions, go one at a time. Moving through each major in turn is slower on paper, but each step is small enough to test.

Useful Tools for the Migration to Go Smoothly

These tools help you size the codebase, find the hard parts and decide where to start.

cloc (Count Lines of Code)

This command-line tool counts the lines of code in your project by language. It gives you a first measure of how big the codebase is.

ngMigration Assistant

Released by the Angular team, this tool analyzes an AngularJS project and suggests a migration path. It gives you an early read on how complex your specific migration will be.

Plato or escomplex

These tools report complexity metrics for JavaScript code. They show which parts of the application are the most tangled, which is where refactoring takes longest.

ng-inspect

This browser extension for Chrome and Firefox shows which controllers, directives and services each page of an AngularJS app uses. It helps you map the app's structure without reading every file.

Dependency Graph Tools

Tools like madge map the dependencies inside your application and show which modules are most tightly linked. That tells you where to start: usually with the modules and files that have the fewest connections.

Static Analysis Tool

For the TypeScript side, use ESLint with the angular-eslint rules. TSLint and Codelyzer, which older guides recommend, are deprecated. Linting keeps the migrated code consistent as several people convert files in parallel.

For reference documentation, start with the Angular official website and the community list of Angular resources on GitHub.

Testing and Validation

An AngularJS to Angular migration is done when the new app behaves like the old one, not when the last file compiles. Testing is how you prove that.

Start before the migration, with characterization tests on the AngularJS app that record what it does today, including the odd behavior users rely on. Run the same scenarios against the hybrid after every step.

The Angular CLI generates test files and configures the unit test runner for new code. Modern Angular projects (Angular 21+) support Vitest as a fast unit test runner option alongside Karma/Web Test Runner migrations, so check the current docs instead of copying an old Karma setup. For end-to-end tests, use Playwright (or Cypress if your team already runs it); Protractor, the old default for AngularJS, reached end of life in 2023.

Test each migrated service and component on its own, then test the flows that cross both frameworks. Hybrid bugs tend to sit in those cross-framework flows, and catching them before release lets you ship a working app at every stage.

Cost and Timeline: What Drives Them

We will not quote a typical price for an AngularJS to Angular migration, because the range is too wide to be useful. These are the factors that move it:

  • The size and shape of the code: the number of modules, routes and components, and how much logic sits in controllers and $scope.
  • Test coverage. Little or no coverage means characterization tests come first, and they take real time.
  • Third-party AngularJS modules, since each one needs a replacement or a rewrite.
  • Feature work during the move. Shipping features in parallel stretches the calendar but keeps revenue moving.
  • The team. Seniors who know both frameworks do more with fewer people.

Our own projects show how far first estimates can drift. MultiQ expected the full migration to take 3 to 4 months. We suggested a discovery phase first, and the plan that came out of it set an 18-month timeframe, which the team met with two senior front-end engineers. Oleg's rule from above is a good sanity check: plan for at least half of the effort that went into building the original app. Keeping an unsupported AngularJS codebase on life support gets more expensive every year in manual patching, whereas having our team maintain your live AngularJS application during a phased migration to Angular or React/Next.js brings down your ongoing maintenance fee as legacy modules are retired.

ProCoders Case Study: Real-world AngularJS to Angular Migration

We have engineers who know AngularJS well, which is rare now, and we have run several of these projects, including Ushahidi and MultiQ.

MultiQ is a digital signage provider in the Nordics. It needed to move its flagship CMS from AngularJS to Angular to fix security and scalability issues. A senior engineer started by mapping the architecture, modules and dependencies, and gave the client a decomposition chart to agree the scope. Two senior engineers then rewrote the services and components to TypeScript and Angular, using a library built together with MultiQ to run components from both frameworks side by side. The project was delivered within the agreed 18 months, and the case records 30% saved on consulting fees.

We spoke with Andrew, one of the engineers on the project.

Q: What did you do to make the transition smooth?

Andrew: I used a HybridHelper while migrating; the solution allowed both frameworks to function simultaneously so the project was up and running while the developers were working on the migration. I also implemented the Upgrade and Downgrade components that help run AngularJS sections on the newer framework and vice versa.

Q: What were the complications and obstacles along the way?

Andrew: There are not many AngularJS to Angular migration challenges, but there is one huge pain: scope. In AngularJS, the scope is an object that acts as a bridge between the view (what users see) and the controller (the logic behind it).

Since Angular uses a component-based architecture with properties and event bindings instead of scope, the migration process involves refactoring the code to align with the new structure.

Q: How many specialists were working on the project?

Andrew: Only two. Miroslav (a Senior Angular developer at ProCoders) and I were on the team. Our team's big advantage is having Senior experts who know the ins and outs of not just the modern frameworks but the outdated ones as well.

Q: What was one of the best results for the client?

Andrew: Aside from getting an updated, future-proof solution, our partners at MultiQ were in business the whole time as we didn't need to close the old resource.

Ushahidi, an open-source crisis-reporting platform, took a different route. A team of six from ProCoders (three front-end developers who know AngularJS, Angular and Ionic, plus QA, a project manager and a UI/UX engineer) moved its web app from AngularJS to Angular 14 and developed a new mobile app, all in about a year; the team was still preparing the app's launch when the case was written.

5.0
"They always strive to deliver the expected results."
David LosadaDirector of Technology, Ushahidi
Verified on Clutch

Planning an AngularJS migration? Talk to the engineers who have run them.

How to Choose the Right Development Partner for Migration or Make Suitable In-House Team Extension

There are many ways to hire Angular developers, but to migrate AngularJS to Angular you need people who know both frameworks, and they are harder to find. Experience decides whether to migrate or rewrite, which AngularJS components to rewrite first and which utilities will keep the process fast.

This is what we suggest checking:

  • Case studies and reviews. Use Clutch and similar sites, and ask to speak with current or past clients. ProCoders holds a 5.0 rating on Clutch.
  • Contracts and IP. Sign an NDA and a contract that transfers the source code and IP to you. We transfer 100% of the code and IP and back the work with a 3-month warranty.
  • Time zone and communication. Daily contact matters during a hybrid phase, when decisions about the old and new code come up every day.
  • Developer qualifications. The engineers must know both frameworks and the upgrade techniques. If you are growing your own team for the Angular side, hire TypeScript developers who have shipped Angular in production.
  • Interviews. Interview the engineers who will actually work on your app. We always encourage clients to do this.
  • Process. Ask how they plan, integrate code and decide the order of migration. A clear cloud migration team structure shows who owns what when the move also changes your hosting.

One of the first questions to ask is which method they would use for your app. Then ask how their previous migrations went and what problems they hit.

If you would rather keep one accountable team on it, a dedicated team can own both the AngularJS app and the new Angular code until cutover. Founded in 2015 and trusted by 500+ companies, ProCoders staffs from a bench of 120+ engineers (with a 5-year median tenure and 4% attrition), sends a shortlist in 72 hours, onboards in about 14 days with 5+ hours of daily overlap and a 7-day replacement notice, and operates under ISO 27001 certified and SOC 2 ready processes at rates 45-65% below US in-house teams. Our AngularJS migration service covers the assessment, the hybrid build and support for the old app in one plan.

FAQ
01Is AngularJS end of life?

Yes. Official long-term support for AngularJS ended on December 31, 2021. The Angular team no longer releases security patches or browser fixes for it, so any new vulnerability stays open unless you patch it yourself or buy patches from a third party. The app keeps running; the risk moves to you.

02Can we still get AngularJS support?

Not from the Angular team. You can buy third-party extended support from vendors like HeroDevs, freeze and isolate a short-lived app, or have ProCoders maintain your live AngularJS app while migrating screens step by step to Angular or React/Next.js. Phased migration keeps releases moving and lowers your ongoing maintenance fee as legacy modules retire.

03Is it possible to migrate AngularJS to Angular without stopping feature work?

Yes. With ngUpgrade, AngularJS and Angular run in one hybrid app. We maintain your live AngularJS app while moving services, components and routes one at a time, so features keep shipping and your ongoing maintenance fee drops as legacy AngularJS code is removed.

04How long does an AngularJS migration take?

It depends on the number of modules and routes, test coverage, third-party AngularJS libraries and whether feature work continues. A useful rule: plan for at least half the effort that went into building the original app. MultiQ first expected 3 to 4 months; the plan after discovery set 18 months, which was met.

05Should we migrate to Angular or rewrite in React or Vue?

Angular keeps your team's model of services, dependency injection and TypeScript, and it is the only target with an official bridge, ngUpgrade. React or Vue make sense when your team already works in them or the product needs a full redesign. Count your third-party AngularJS modules first; they often decide it.

06Can AI do the migration for us?

AI handles much of the mechanical work: controllers to components, template syntax, $http to HttpClient, types and test scaffolds. Google reported about 80% of the code changes in one internal ID-type migration were AI-written. Architecture, shared state and the hybrid wiring still need senior engineers, and every change needs tests and human review.

Conclusion

Staying on AngularJS is a decision too, and its cost grows every year: no patches, fewer libraries and a thinner hiring pool. A planned AngularJS to Angular migration turns that open risk into a project with a scope, a timeline and an end date.

We will help you choose between a gradual upgrade and a rewrite, based on your time and budget. Our engineers know both frameworks, keep the old app running and earning while the new one ships, and hand over clean Angular code you own.

If you want a plan for your app, start with our legacy modernization team, or book a call and we will look at the codebase together.