Angular Tutorial — Learn Angular 20
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 20). Compared with AngularJS, modern Angular is faster, and supports web, desktop, and mobile application development.
Angular use components instead of controllers in AngularJS. Also angular is installed using npm. Angular JS use JavaScript, but angular use typescript with is a JavaScript Superset. Thus Angular supports better class features. This is good for Java and C++ Developers.
Angular JS supports ends in Jan 2022. So Officially Google is not supporting and updating and Angular JS. The last version of Angular JS 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 20.
Angular get a major version update every 6 months.
Current Supported Versions
| Version | Status | Released | LTS Support Ends |
|---|---|---|---|
| ^20 | Active | 2025-May-28 | 2026-Nov-21 |
| ^19 | LTS | 2024-Nov-19 | 2026-May-19 |
| ^18 | LTS | 2024-May-22 | 2025-Nov-19 |
Angular version 2 to 16 are not supported
Pre-requisite 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
Each 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 library of javascript used now. In-fact , react is more popular after 2019 then angular. React also support features like Single page application, components etc. Here is the difference between angular and react.
| Comparison | Angular | React |
|---|---|---|
| Released | 2010 | 2013 |
| Powered by | ||
| Type | Framework | Library |
| Languages | HTML, Typescript | JS, 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 |