November 23, 2026
How Miro got rid of a 12-year-old Angular.js legacy in 30 working days
Author: Ahmed El Gabri (Senior Staff Engineer)
Removing a framework that nobody wanted but everything depended on is as much a story about organizations as about code. This article covers why the migration stalled for years, how coding agents changed the economics of finishing it, and where they needed a human to catch them.
The framework nobody patches
The first commit in the repository of Miro's web client is from May 2014, and it already imports Angular.js. Twelve years later we were still shipping it, version 1.8.2, to everyone who opened a board.
Angular.js reached end of life on December 31, 2021. The open source project stopped shipping security patches, and a framework that nobody patches is a security risk that grows every year. You can buy patched builds from third-party vendors, and for some teams that is the right call. I did not want us to pay that bill forever. Nobody at Miro had written new Angular.js code in years. It was still in 166 places, and enough of the product depended on it that every attempt to remove it had stalled.
It is gone now. I started on July 1, and the last pull request merged on September 2. In between there were 56 merged pull requests and about 30 working days, with one engineer and a lot of coding agents. I reviewed every change before it merged.
Even I did not expect it to go that fast. In mid-August, with 130 references left, I had a staffing pitch drafted that estimated two to three more quarters with a dedicated team. I never sent it. The last pull request merged two weeks later.
It was not all smooth. I had one P3 issue along the way, and the agents were confidently wrong more than once. I will get to that too.
Why it took six years
I joined Miro in 2020, and the migration to React was already under way. Teams built new features in React. To keep shipping in the meantime we built bridges, so that React could render Angular.js components and Angular.js could render React ones.
The bridges worked a little too well. Once both frameworks could live side by side, nothing forced the old one out.
For scale, the client is a TypeScript monorepo of about 7 million lines. Hundreds of engineers work in it and we deploy about 11 times a day. Some of the Angular.js removal was mechanical. A lot of it needed someone who knew how a feature is supposed to behave, and that knowledge sits with the product team that owns the feature. Product teams have roadmaps.
So over six years we tried dedicated teams, tiger teams, new initiatives and contractors. Each attempt lost to product work, and I would probably have made the same call every time. But it meant that every other piece of frontend tech debt we wanted to fix also had to keep working with Angular.js, and I was getting tired of that.
Side effects nobody wrote down
Finding Angular.js was never the hard part. import 'angular' appeared in exactly one file.
The trouble is that when a framework has been there since the first commit, other code starts to lean on things it does by accident. I hit three of these, and a search finds none of them.
At startup, Angular.js registered a click listener on a full-viewport div. The listener did nothing. But because it existed, Chromium treated that div as a touch target, and that kept taps near the board header from being nudged away from the canvas. Remove the Angular.js bootstrap and touch behaviour changes on every board. There was no test for it and no comment. I kept the listener, moved it to its own module and wrote the comment.
Our wireframe widgets rendered through Angular.js templates, and the digest cycle repainted them after every state change. Nobody thought of that repaint as a feature. Move the click handler to React without it, and a checkbox flips in the data and stays the same on screen.
And @types/angular was loaded through a types entry in a tsconfig file, with no import statement anywhere. I found out by removing the package and watching the build fail in four unrelated files.
You find this kind of thing through a compiler error or through a support ticket. I know which one I prefer.
The experiment that changed my mind
When we first got coding agents internally, I pointed them at migrations we had parked for years. My test case was moving our ESLint 7 setup to Oxlint. Linting took about 11 minutes on a laptop, so nobody ran it on a laptop. Every model I tried failed at it, with different prompts and different plans, and I shelved the idea.
I was in a meeting when Claude Fable 5 was announced, and the first thing I did afterwards was give it the ESLint migration in Claude Code. It spent two hours on a plan. I approved the plan, and two and a half hours later I had a pull request that passed CI on the first run. Lint now takes about 90 seconds.
That is one data point, and Angular.js was a much bigger problem. But the Oxlint work had the two properties I cared about. The goal was measurable, and the agent could check its own work against CI.
So just before my summer vacation I opened Claude Code and described the Angular.js problem, including the traps I already knew about. The goal was blunt. I wanted to be able to run yarn remove angular. And, of course, make no mistakes.
I did not expect to finish it. The plan was to do 50 to 70 percent of the work for each product team and then ask them for the rest, because asking a team to finish a migration is an easier conversation than asking them to start one.
First, lock the door
We already had a script that counted Angular.js usage. It used regular expressions, so it missed some cases and miscounted others.
The first pull request replaced it with a scanner that parses the code and counts registrations by type, such as directives, components, templates, dependency injection registrations and package imports. It writes the counts to a JSON file that lives in the repository. A pre-commit hook and a CI check fail any change that makes a count go up, and a lint rule blocks Angular.js imports in new files. We had agreed years ago to stop writing Angular.js. Now CI enforced the agreement.
From then on the number could only go down. People outside the project could watch it move, and one team could no longer add three references while another removed two. Nothing else in the project did as much for so little code.
Two more pull requests deleted about 2,000 lines of dead code. Then I went on vacation.
The workflow
I came back on August 3 and picked the migration up again two days later. The idea was to let it run in the background until it hit a wall. If it stalled, we would still have less dead code, better checks and a map for whoever tried next.
I asked Claude to create an epic, break the plan into tasks ordered by dependency, and start working through them. A typical round looked like this:
- Pick a task whose dependencies are already gone.
- The agent implements it and opens a draft pull request.
- I review the diff and push back until I am happy with it.
- A skill I wrote babysits CI, end-to-end tests included, until the pull request is green.
- Anything that changes product behaviour goes behind a feature flag and rolls out gradually.
- The Angular.js version gets deleted only after the React version has been at 100 percent for a while.
I would hand over a task or two, go back to my actual job, and return to a few draft pull requests. Nothing went to other reviewers before I had read it myself, and the agent never decided what merged or what reached customers.
The order mattered more than I expected. I started with code that nothing else depended on, then moved to shared services, then the bridges, the runtime, the build configuration, the scanner itself, and finally the leftover Angular.js names. By the time I reached the runtime, four imports in one bootstrap file were the only real imports of the framework left. Removing them was boring, which is what I wanted.
Pull request after pull request went through with little drama. At some point I stopped thinking "I will do part of this" and started thinking "I will get rid of Angular.js". I mentioned it to my team in a 1-1, as something I was doing on the side. That made it official, I guess.
Where the agents worked well
The agents were at their best when a compiler, a linter or a test could tell them they were wrong. Renaming types, rewiring imports and removing registrations across hundreds of files went fast and needed few corrections.
They were also good at reading, which I had underestimated. Before the runtime removal I ran 25 agents in parallel over six areas of the codebase, and each one mapped what existed and what used it. Then a second group got a single instruction, which was to prove the first group wrong.
That second pass refuted 10 of the 19 "safe to delete" claims before I touched any code. One helper looked unused because nothing imported it. In reality it patched methods onto the Angular.js Scope prototype at runtime, so callers reached it by name and no import graph could see it. The scanner scripts looked like dead tooling, but a blocking CI check ran them and failed when its baseline file was missing. If I had deleted the scripts and the baseline in separate pull requests, every pull request in the repository would have gone red in between. The @types/angular entry from earlier was another.
Ask one agent whether something is safe to delete and you get a confident yes. Tell a few more to prove it is unsafe and they find what the first one missed.
Where I had to slow down
Features were a different story. Some of what was left had no clear owner, thin test coverage, or behaviour that no dependency graph will show you.
For those, the React version shipped behind a feature flag at 0 percent. I ramped it in steps, watched errors and customer reports, and let it sit at 100 percent before deleting the Angular.js version. I also posted in our incidents channel which flag to turn off if something looked wrong. If it broke during the night in Europe, a colleague in another time zone could switch it off without a revert and without waking me at 3 AM. Nobody likes that call.
This is why the big deletions were non-events. One pull request removed 5,249 lines of Angular.js templates, and by then nothing had rendered through them for a week.
The flags did trip me up once. Our end-to-end suite runs with all feature flags off by default, so during a rollout the tests were checking the old path while customers got the new one. Once I noticed, I opened canary pull requests that were never meant to merge. Each one forced a flag on and ran the full suite.
What went wrong
Less than I feared, and mostly small things.
One P3 issue in production.
I mitigated it right away by turning the feature flag off, and three hours later a fix was live.
- Some debt of my own. The wireframe widgets moved to React with their Angular.js architecture copied almost one to one. That kept the rollout small, and I suggested a rewrite to the team that owns them. It is in the backlog.
The result
The work took about 30 working days, from July 1 to September 2, 2026. In that time the number of tracked Angular.js references went from 166 to zero, across 56 merged pull requests. I also opened four pull requests that I deliberately never merged; they were test canaries. In total the changes added 19,456 lines and removed 27,751, a net reduction of 8,295 lines, and touched about 1,101 files.
A counter at zero was not my definition of done. I wanted the runtime packages, @types/angular, the build configuration, both bridges, the scanner with its CI check and the leftover Angular.js names all gone. They are. The client no longer loads a framework chunk to render a board.
Model usage over that period cost about $14,000. I was using the agents for other work as well, so my estimate is that 80 to 90 percent of it went to this migration. I could do it for less today with what I learned. Either way it is small next to six years of partial attempts, or next to a support contract for a dead framework with no end date. Keep in mind that these numbers come from one migration in one codebase. Yours will look different.
One engineer directed this, but it was not a solo project. More than 50 engineers across many teams reviewed pull requests, often on short notice. Cristina Doroftei, Evgenii Gorodilov and Ben Makuh helped validate and ship the riskiest migrations, and I owe them a thank you.
What I learned
The agent wrote a lot of code, and writing code was the easy part.
Looking back, what made this work was mostly unglamorous engineering. The remaining work was a number that CI would not let go up. The order followed the dependencies, so each step made the next one simpler. Mechanical changes moved as fast as CI allowed. Product changes moved as slowly as their rollout needed, and anyone could switch them off. And when someone, human or agent, claimed that a thing was safe to delete or that a test protected something, the claim had to survive an attempt to break it.
I would call the whole thing semi-autonomous. I set the plan, reviewed every change, argued with the agent's conclusions, talked to the teams who owned the code and decided how each change reached production. What the agents changed is that one engineer could keep all of that moving next to a day job. Before, it took several teams finding time in the same quarter.
If your codebase has a migration that everyone agrees on and that loses to the roadmap every quarter, it may be worth another look. Ours had been losing for six years.