HOMEarrowBLOGarrowAngulararrow

AngularJS to React Migration: A Module-by-Module Guide (2026)

AngularJS to React Migration: A Module-by-Module Guide (2026)

Angular

November 24, 2026•4 min read

Alex Vasylenko

I hope you enjoy reading this post. If you want us to do your frontend development or design, click here.

Author: Alex Vasylenko | Founder of The Frontend Company

Reviewed by Pavlo Tyshchenko, COO, The Frontend Company

tfc-ngjsreact-cover-square.webp
An AngularJS to React migration is a rewrite, not a port: AngularJS (1.x) and React share no runtime, no component model and no templating, so code does not convert - it gets rebuilt, one module at a time, while the old app keeps serving every route you have not reached yet. The big-bang rewrite - freeze features for a year, launch the new app on a Saturday - is how AngularJS migrations fail, and the strangler approach is how they finish.
Below: the destination decision (Angular or React), how two frameworks run side by side, the module-by-module sequence we use, the parts that are hard every time, and what drives the cost. If your app is on Angular 2 or later rather than AngularJS, you want Angular to React instead - a different project with different tooling.

Why migrate off AngularJS, and why now?

Google's long-term support for AngularJS ended on 31 December 2021, and the official AngularJS site states that support officially ended as of January 2022. Since then: no security patches, no fixes for new browsers, no updates to the ecosystem around it. Almost five years on, the practical consequences are what pushes teams to move:
  • Security. Vulnerabilities reported against AngularJS after 2021 stay open unless you pay a third-party vendor for patches. Enterprise security questionnaires ask about it directly.
  • Dependencies. The AngularJS library ecosystem (ui-router, ui-bootstrap, angular-ui-grid and the rest) is frozen. Every other dependency in the build - Node, bundlers, test runners - keeps moving away from it.
  • Hiring. Few engineers want to work in AngularJS in 2026, and those who can are expensive because they are rare. React is the most-used web framework in the Stack Overflow 2025 developer survey at 44.7%; hiring for it is a different market.
  • Velocity. Two-way binding, $scope digest cycles and jQuery-era DOM manipulation make every change slower and riskier than it should be. The migration is usually the first time the team can touch the UI without fear.
Extended commercial support exists - HeroDevs sells it as Never-Ending Support for AngularJS - and is a reasonable bridge if you need a year to run the migration safely. It is not a destination. We go through the three options - extended support, Angular, React - in AngularJS end of life.

Angular or React: which destination fits your product?

Both are legitimate. The honest version of the choice:
Pick Angular when the team is Angular-native or will be, the product is an enterprise application that benefits from Angular's opinionated structure (dependency injection, modules, RxJS, a generous CLI), or you want the official incremental path: ngUpgrade runs AngularJS and Angular in the same app so you migrate component by component with Google's own tooling. That path is covered in AngularJS to Angular migration, and our Angular side lives on Angular development services. The framework comparison itself is in Angular vs AngularJS.
Pick React when the rest of your stack or roadmap already points there (a Next.js marketing site, a React Native app, a design system in React), hiring in your market favours React, or the product is UI-heavy and you want the larger component ecosystem and the simpler mental model of components and hooks.
What does not decide it: performance (both are fast enough for any business app), SEO (both do server-side rendering now), or which one is winning on social media. We build on both; the rest of this article is the React path.

Can AngularJS and React run side by side?

Yes, and they have to - that is what makes the migration incremental instead of a rewrite with a launch date. Three ways to split the app, from simplest to most flexible:
Approach
How it works
Best for
Watch out for
Route-level split
Two applications behind one entry point; each route is served by either the AngularJS app or the React app. Shared auth, session and API clients live outside both.
Apps with clear feature areas and a router boundary (most ui-router apps)
Shared layout (navigation, header) has to be rebuilt in React early or duplicated
Component bridge
React components mounted inside AngularJS templates through a wrapper such as react2angular or ngReact
Apps where whole routes are too big to move at once
Two change-detection systems on one page; both bridge libraries had their last release in 2019 and are effectively unmaintained
Micro-frontends
A shell (single-spa or a custom orchestrator) loads AngularJS and React bundles as separate applications
Large apps with several teams migrating in parallel
More infrastructure than most products need; only worth it above a certain size
For most products we use the route-level split: it keeps the two frameworks out of each other's way, the seam is easy to reason about, and deleting AngularJS code is as simple as removing a route.

How does a module-by-module migration work?

The sequence below is the shape of every AngularJS to React migration we run. Timelines differ; the order does not.
  1. Inventory the app. Every route, controller, directive, service, filter and third-party AngularJS library, with its coupling to the others. This is where the real size of the project appears - not in the line count, but in the number of custom directives that manipulate the DOM and the number of libraries with no React equivalent. A frontend audit produces exactly this before you commit to anything.
  2. Build the seam. Routing split, a shared auth and session layer, API clients extracted out of AngularJS services into plain TypeScript modules both apps can import, and the shared shell (navigation, layout) rebuilt in React. Nothing user-facing changes yet.
  3. Pick the first module. Low coupling, moderate size, real user value - a settings area, a reporting screen, a secondary workflow. Not the login page (too much shared state) and not the core workflow (too risky first). Module one exists to prove the seam and the delivery rhythm.
  4. Rewrite the module in React. TypeScript, function components and hooks, a state model chosen for the module (local state and a server-cache library cover most of it; a global store only where state is truly shared), tests from day one. Business rules and API contracts carry over; $scope, two-way binding and DOM manipulation do not.
  5. Cut the route over and delete the AngularJS code. Feature flag or straight switch, depending on risk. The deletion matters: a migration where old code stays around just in case is one that never ends.
  6. Repeat, in order of value and dependency. Each module leaves the seam a little thinner. The last modules are usually the ones everything else depended on - the core workflow and auth - and by then the team has done this a dozen times.
The pattern is the strangler pattern from application modernization, applied to a frontend; the broader playbook is in legacy application modernization strategies and the full guide in application modernization.

What is hard every time?

  • State. AngularJS apps keep state in $scope, $rootScope and services that everything mutates. React needs an explicit state model per module. Most of the design work is here, and it is where a module turns out bigger than its screen suggested.
  • Custom directives. Directives that wrap jQuery plugins or manipulate the DOM directly have no React equivalent - they get replaced with a React component and usually a modern library. Count them in the inventory; they are the cost driver.
  • Routing. ui-router nested states, resolves and route guards map to a React router, but not one to one. Resolves become data loading in the component or the route loader; guards become auth wrappers. Decide the pattern once, before module one.
  • HTTP and auth. $http interceptors that attach tokens and handle 401s are easy to miss and painful to miss. Extract them into the shared client in step two.
  • Tests and build. Karma, Jasmine, Protractor, Grunt or Gulp, Bower - the AngularJS toolchain goes; Vite or Next.js, Jest or Vitest, Testing Library and Playwright come in. Keep the old end-to-end tests running against the old routes until each route is gone; they are the regression suite you already paid for.
  • Internationalisation and forms. angular-translate and AngularJS form validation have React equivalents, but the migration of translation keys and validation rules is tedious, exact work. Budget it.

What drives the cost of an AngularJS to React migration?

We do not publish prices, because no two AngularJS apps cost the same - but the factors are consistent:
  • Number of routes and modules, and how coupled they are. Twenty loosely coupled screens cost less than eight that all share one $rootScope.
  • Custom directives and third-party AngularJS libraries with no React equivalent - each one is a component to design, not just to rewrite.
  • Test coverage. An app with end-to-end tests migrates faster and safer; one without needs a regression suite built first.
  • Backend coupling. If the frontend relies on server-rendered fragments or undocumented API behaviour, the migration touches the backend too.
  • Whether the UI is being redesigned at the same time. A pixel-for-pixel migration and a redesign-plus-migration are different projects; combining them is sometimes right and always more expensive.
How we price it: each module is scoped and priced in writing before work on it starts - so you know the cost of module one before it begins and can stop, pause or reorder after any module. For the general shape of refactoring budgets, see frontend refactoring cost.

Want the inventory before the decision?

Tell us what the app does and we will scope an AngularJS to React migration module by module, each one scoped and priced in writing before work on it starts - and tell you honestly if Angular is the better destination for your product. Book a 30-minute intro call.

Where The Frontend Company fits

We are a frontend engineering company that works with React and Angular, and migrating legacy frontends is one of our core engagements - AngularJS to React, AngularJS to Angular, and older Angular versions forward. We run it the way this article describes: inventory first, the seam before any screen moves, one module at a time with the old app serving everything else, and the AngularJS code deleted as each route cuts over - each module scoped and priced in writing before work on it starts. The service page is AngularJS migration, with React or current Angular as the target; other stacks are covered on React migration services; when the backend and infrastructure need work too, the broader programme is application modernization services.
Still weighing whether Angular itself is a sound long-term choice? Is Angular dead? answers that, and Angular end of life has the current support dates.
unlock cta

Unlock the full potential of your product

tick

Boost customer retention & satisfaction

tick

Become more competitive on the market

tick

Move to the latest technologies stacks

tick

Improve usability & visual appeal

Unlock potential

FAQ

Alex Vasylenko

ABOUT THE AUTHOR

Alex Vasylenko

CEO at The Frontend Company, Founder of Digital Business Card

Alex Vasylenko is the founder of The Frontend Company, DBC and several other successful startups. A dynamic tech entrepreneur, he began his career as a frontend developer at Deloitte and Scandinavia's largest banking company. In 2023, Alex was honored as one of 'Top 10 Emerging Entrepreneurs' by USA Today.

Follow the expert:linkedininstagramx
Pavlo Tyshchenko

REVIEWED BY

Pavlo Tyshchenko

COO, The Frontend Company

Pavlo runs operations and delivery at The Frontend Company and builds its internal AI systems - agent workflows, automation, and the engineering side of software compliance.

Follow the expert:linkedin
KEEP READING

Related articles

LEARN MORE

The latest articles