AI Hints
Home›Angular Tutorial›What Angular Is, Where Angular Is Used and How Angular Works
Angular · Lesson 1 of 120

What Angular Is

A framework for web apps.

⏱ 2 min read▶ Video at 0:00🎓 Free
Watch this lesson in the Angular courseWatch on YouTube ↗Full Angular course

Angular is a framework for building web applications. Apps that run in the browser, like online shops, dashboards, and email. It's made by Google, and it's free, and open source.

  • A framework for web apps
  • Runs in the browser
  • Made by Google, free

What Angular gives you

Angular builds pages from components, small pieces of user interface. Each component has a template, the HTML, and a class, the data and logic. Signals keep the page in sync with your data. And Angular includes a router, forms, and an HTTP client, all in one box.

keyvalue
Componentssmall pieces of UI
Template + classHTML + TypeScript
Signalspage stays in sync
Built inrouter, forms, HTTP

Library or framework?

A library gives you one tool, and you choose the rest yourself. React is a library like that. A framework gives you the whole kit, with one clear way of doing things. Angular is a framework. So Angular apps tend to look alike, which helps big teams.

Library (e.g. React)

  • One job: the UIYou pick routing, forms, HTTPMany ways to do things

Framework (Angular)

  • The whole kitRouting, forms, HTTP includedOne clear way

A first look

Here's a tiny Angular app. Don't worry about every detail yet. The template is the HTML on the page. The class holds the data, a count that starts at zero. Clicking the button adds one, and Angular updates the page for us. Run it. We click the button three times, and the count shows three.

app.tstypescript
import { Component, signal } from '@angular/core';

@Component({
  selector: 'app-root',
  template: `
    <h1>Welcome to the bookshop</h1>
    <p>Books in your basket: {{ count() }}</p>
    <button (click)="count.set(count() + 1)">Add a book</button>
  `,
})
export class App {
  count = signal(0);
}
Also uses actions.json
[{"click": "button", "times": 3}]

Summary

Angular is a complete framework for web apps, built from components, with signals, routing, forms, and HTTP included. Next, where Angular is used.

Key takeaways
  • A complete framework
  • Components
  • Made by Google
Next up: Where Angular Is Used — real apps, big teams