Skip to content
Web Development

Angular Tutorial for Beginners: Components & Signals

A beginner-friendly Angular tutorial: what Angular is, how components, signals and services work, how to start a project and when Angular is the right choice.

Angular tutorial: code editor with Angular code on a widescreen monitor, dark theme
Quick answer

Angular is a TypeScript-based framework from Google for building large, structured web applications. You create a project with the Angular CLI (ng new), build the UI from standalone components, manage reactive state with signals, share logic through services and dependency injection, and navigate with the built-in router. It is popular for enterprise apps and dashboards.

Angular is a complete, opinionated framework: routing, forms, HTTP, testing and tooling are all included. That makes it a strong choice for big teams and long-lived applications. This tutorial introduces the core concepts using recent Angular versions.

What is Angular?

Angular is an open-source framework maintained by Google. Apps are written in TypeScript, a typed superset of JavaScript, and organised into components and services. Angular is different from AngularJS, the original 2010 framework, which reached end of life in 2022.

Set up your first Angular project

01

Install Node.js

Install a current LTS version of Node.js, which includes npm.

02

Install the Angular CLI

Run npm install -g @angular/cli.

03

Create a project

Run ng new my-app and choose your stylesheet format.

04

Start the dev server

Run cd my-app then ng serve and open http://localhost:4200.

Components and signals

A component combines a TypeScript class, an HTML template and styles. Modern Angular uses standalone components and signals for reactive state, plus built-in control flow such as @if and @for in templates.

import { Component, signal, computed } from '@angular/core';

@Component({
  selector: 'app-counter',
  template: `
    <p>Count: {{ count() }} (double: {{ double() }})</p>
    <button (click)="increment()">Add one</button>
    @if (count() > 5) { <p>That is a lot of clicks!</p> }
  `,
})
export class CounterComponent {
  count = signal(0);
  double = computed(() => this.count() * 2);
  increment() { this.count.update(n => n + 1); }
}

Key Angular concepts

ConceptWhat it does
ComponentsBuilding blocks of the UI, each with a template and logic
SignalsReactive values that update the UI automatically when they change
Services and dependency injectionShare data and logic (for example API calls) across components
RouterMaps URLs to components and supports lazy loading
FormsTemplate-driven and reactive forms with validation
HttpClientCalls REST APIs
Server-side renderingRenders pages on the server for faster first load and better SEO

Angular project ideas for practice

Angular vs React vs Vue

Angular is a full framework with strong conventions and built-in tools. React is a flexible UI library that you combine with other packages, and Vue sits between the two with an approachable learning curve. Read React vs Angular or start with our React tutorial and Vue tutorial.

Tip: Learn TypeScript basics before Angular — types, interfaces and classes — and Angular will make much more sense. See our TypeScript tutorial.

Keep learning

More in Web Development

HTML

Learn how HTML structures modern websites — from document basics and semantic elements to forms, media, accessibility, SEO and practical…

CSS

Learn how CSS controls the appearance, layout, responsiveness and visual behaviour of modern websites — from selectors and the box…

JavaScript

Learn JavaScript from the fundamentals to DOM manipulation, events, functions, asynchronous programming, APIs, modules, browser storage and modern frontend development.

PHP

Learn PHP from the fundamentals to server-side programming, forms, databases, APIs, object-oriented programming, WordPress development, security and modern backend development.

React

Learn React from the fundamentals to components, JSX, props, state, hooks, forms, APIs, performance, accessibility, testing and modern frontend application…

Vue

Learn Vue.js 3 step by step: create a project, build single-file components, use reactive state with the Composition API and…

Next.js

Learn Next.js step by step: the App Router, Server Components, rendering options, metadata for SEO, images and how to build…

Laravel

Learn Laravel from PHP framework fundamentals and MVC architecture to routing, controllers, Blade, Eloquent, databases, APIs, authentication, security, testing, performance…

Latest articles

Related Web Development articles

FAQ

Angular tutorial: your questions answered

Short, honest answers to the questions people ask most about this topic.

Is Angular hard to learn?

Angular has a steeper learning curve than Vue or React because it includes TypeScript, dependency injection and many built-in features. Once learned, its structure makes large apps easier to maintain.

Yes. Angular remains widely used, especially for enterprise applications, internal tools and large teams, and Google continues to release major versions regularly.

AngularJS is the original JavaScript framework from 2010 and is no longer supported. Angular (version 2 and later) is a complete rewrite based on TypeScript and components.

Yes, with server-side rendering or prerendering, which Angular supports, so search engines receive fully rendered HTML.

Next step

Keep building your skills

Explore the rest of our Web Development guides, or follow the beginner path step by step.