Angular Tutorial — Learn Angular 21
Written By: Avinash Malhotra
Updated on
Angular
Angular is an open-source framework and development platform for building web, desktop, and mobile applications. Angular is built on TypeScript and is developed and maintained by Google. It is a modern frontend framework for creating single-page applications (SPAs). Before starting Angular, you should be familiar with the following:
- AngularJS to Angular
- Introduction of TypeScript
- Pre-requisite for Angular
- Introduction of VS Code
AngularJS to Angular
AngularJS refers to the 1.x versions (launched in 2010). The newer Angular (sometimes called "Angular 2+") is a complete rewrite and modernization of the framework, starting from Angular 2 through the current releases (Angular 21). Compared with AngularJS, modern Angular is faster and supports web, desktop, and mobile application development.
Angular uses components instead of controllers in AngularJS. Also, Angular is installed using npm. AngularJS uses JavaScript, but Angular uses TypeScript, which is a JavaScript superset. Thus, Angular supports better class features. This is good for Java and C++ developers.
AngularJS support ended in January 2022. Officially, Google is not supporting or updating AngularJS. The last version of AngularJS was 1.8.2.
TypeScript
Angular applications are written in TypeScript. TypeScript is an object-oriented language developed by Microsoft and is a superset of JavaScript (ES6). TypeScript is transpiled to JavaScript before running in the browser. You can use modern JavaScript features, but knowing TypeScript is highly recommended for Angular development.
Read more about TypeScript in our tutorial.
Advantages of TypeScript
- Types support like any, string, number etc.
- Interface
- Generics
- Class Features
- Better debugging
Angular Versions
Angular starts from Beta version 2 in 2016. This first stable version was Angular 4 launched in March 2017. The latest version of Angular is 21.
Angular gets a major version update every 6 months.
Current Supported Versions
| Version | Status | Released | LTS Support Ends |
|---|---|---|---|
| ^21 | Active | 2025-Nov-19 | 2027-May-19 |
| ^20 | LTS | 2025-May-28 | 2026-Nov-21 |
| ^19 | LTS | 2024-Nov-19 | 2026-May-19 |
Angular versions 2 through 18 are not supported.
Prerequisites for Angular
To start Angular, you must have knowledge of HTML, CSS and JavaScript ES6. Angular is helpful for both Frontend Developer and Backend Developers.
I strictly recommend learning JavaScript ES6 before starting Angular. All the latest JS ES6 features like, classes, modules are used in Angular.
Angular Structure
An Angular application has four major building blocks. They are:
- Components
- Templates
- Directives
- Dependency Injection
VS Code
VS Code is a popular code editor with built-in support for JavaScript (ES6) and TypeScript. This tutorial uses VS Code for examples and demos. VS Code is developed by Microsoft and provides a lightweight, fast development experience for Angular projects.
Extensions for Angular
I recommend installing the Angular Language Service extension for improved IntelliSense, diagnostics, and editor support while building Angular apps.
Angular Vs React
React.js is also a popular JavaScript library. In fact, React is more popular than Angular after 2019. React also supports features like single-page applications, components, etc. Here is the difference between Angular and React.
| Comparison | Angular | React |
|---|---|---|
| Released | 2010 | 2013 |
| Powered by | ||
| Type | Framework | Library |
| Languages | HTML, TypeScript | JavaScript, JSX |
| Data Binding | Two-way | One-way |
| DOM | Real DOM | Virtual DOM |
| Learning Curve | Medium | Low |
| Performance | Medium | Fast |
| Top Web Technologies Ranking ( Stack overflow Survey 2022 ) | 20.39% | 42.62% |
| Companies using | Google, Microsoft, Forbes, Youtube, IRCTC, Telegram | Facebook, Instagram, Twitter, Netflix, Paypal, Uber |