At ngEurope in 2014, Angular’s team explained the next version with gravestones. One of the things being buried was $scope, a name developers saw all over their AngularJS code. A conference talk is a great place for a funeral joke. It’s a less comfortable place to realize your team is about to inherit the paperwork.

2009–2012

When typing your name felt like a magic trick

Miško Hevery started the project that would become AngularJS in 2009. Igor Minar was an early tester and went on to work on it at Google. It grew into an open source framework maintained by a team at Google with help from contributors outside it. The idea was to make ordinary web pages easier to turn into apps.

Imagine a form that greets you by name as you type. You could wire the input to the greeting yourself and remember to update both if the app later changes the name. Or you could say which piece of data belongs in both spots and let AngularJS keep them in sync. That was the little magic trick of two-way binding. On a small form, it saved a chore. In a big app, where different parts of the page could change shared data, it could be surprisingly hard to find out who had just changed what.

2014–2016

The gravestones were the easy part

Angular 2 shipped in 2016 with an approach built around components. A booking calendar could have its own template and logic, accept the dates it should show, and report which day the user picked. That gave developers a clearer place to look when Tuesday was suddenly missing. Angular also embraced TypeScript, which could flag a mistake such as passing text where a component expects a number before anyone opens the page.

A new app could start with those rules. An existing one had to get there. Developer Todd Motto showed readers how to use AngularJS 1.5’s own component API to move toward the new style while staying on the old framework. The Ionic team took a bigger step and built Ionic 2 on the new Angular and TypeScript. The Angular team at Google offered ngUpgrade so both frameworks could run in one app. You could move the booking calendar first and leave the payment screen alone until after the holidays. You still had to move it eventually.

Left: the old app still runs on AngularJS. Middle: ngUpgrade lets old and new parts share an app during the move. Right: the migrated app runs on Angular.

2016–2017

Version 2, then version 4. Yes, you heard that right.

Angular’s router, the part that decides what to show when the address changes, was already on version 3 while the rest of the main packages were on version 2. When the team wanted the packages to share a version number, it went straight to Angular 4 in March 2017. Nobody had to find an Angular 3 installer. The router had simply started counting ahead of everybody else.

The numbering was funny because the difference behind the names was serious. AngularJS and Angular 2 were two different frameworks to maintain. Angular 2 and 4 were successive releases of the new framework. A bigger number didn’t mean another gravestone presentation was on the calendar.

The top row shows the framework releases. The bottom row shows the router, which was already on 3. Both used 4 at the next major release.

2020–2022

Change the engine while the app is still running

With Angular 9 in 2020, the team made Ivy the default compiler and renderer. It took the same basic idea of a component and changed how Angular turned it into a working page. Ivy could leave more unused framework code out of the download and catch more mistakes in templates. There was still upgrade work, but changing the machinery underneath your calendar was a different proposition from rebuilding the calendar.

Official support for AngularJS ended at the turn of 2022. That year, Angular 15 made standalone components stable: a component could name the tools it needed directly instead of relying on an NgModule to declare it. A new feature could start that way while older parts of the app stayed put. This time, the new way of building things had room for the old way in the same framework.

2023–2026

Stop asking the whole building who rang the bell

Later releases took a fresh look at how Angular decides what to update. Signals let a view say which values it reads, so Angular can tell which parts depend on a change. New apps stopped using Zone.js by default in Angular 21. Angular 22 made OnPush the default for new apps, helping Angular skip branches of the page that don’t need checking. If the calendar changes, the footer usually has nothing to add to the conversation.

There’s a quieter change you can see right here. Angular can prepare this article as an HTML file when the site is built, so a static host can send the text without running an Angular server for each visit. The browser can still take over when you use the site. In 2009, the thrill was making a web page come alive. Now one of Angular’s better tricks is knowing how much work it can finish before you arrive.

Original sources