Frontend JavaScript Sviluppo Web

Angular RxJS Course - Observable, Operators and HTTP Step by Step

Master RxJS in Angular: Observable, pipe operators, async HttpClient and BehaviorSubject for state management.

Course description

RxJS in Angular — the piece that changes everything

If you use Angular but haven't mastered RxJS yet, you're missing 50% of the framework's power. Reactive programming is the heart of Angular: without understanding Observable, operators and HttpClient asynchronously, your code stays fragile and hard to maintain.

What You'll Learn

  • Creating Observables with of, from and interval
  • Converting Promises to Observables to unify data sources
  • Core operators: map, filter, take, tap
  • Handling UI events with fromEvent and optimizing with debounceTime
  • HttpClient with RxJS directly in components and Services
  • Subject vs BehaviorSubject: when to use them and why
  • Managing shared state between components with a Service + BehaviorSubject
  • Preventing memory leaks with takeUntil and ngOnDestroy
  • Practical difference between switchMap, mergeMap and concatMap
  • Parallel HTTP calls with mergeMap and sequential calls with concatMap

Who This Is For

Angular developers who already know the basics of the framework and want to finally understand RxJS in a practical way — not just reading operators in the documentation, but knowing when and why to use them in a real project.

My Approach

Each lesson introduces a concept and applies it immediately to a practical case. No slides: we work on real code, with Angular CLI and TypeScript, building examples you can copy and adapt to your own projects.

Lessons list

I'll show you how to configure Angular to work with RxJS, verifying the required dependencies and preparing the environment. Let's explore why RxJS is the backbone of reactive programming in Angular.

Guarda lezione

Let's create our first Observables in Angular using the RxJS 'of' and 'from' creation operators. I'll show you how to turn arrays and plain values into observable streams and how to subscribe to them.

Guarda lezione

I'll explain how to convert a Promise into an Observable with RxJS 'from', and how to generate time-based events with 'interval' directly inside an Angular component.

Guarda lezione

I'll walk you through the fundamental RxJS operators step by step — 'map', 'filter', 'take' and 'tap' — with practical Angular examples showing how to transform and filter stream data.

Guarda lezione

Let's use RxJS 'fromEvent' to intercept user events like clicks and input changes directly in Angular views, turning them into Observables we can manage reactively.

Guarda lezione

I'll show you how to use 'debounceTime' to throttle events from 'fromEvent', improving Angular app performance and reducing unnecessary calls triggered by fast user input.

Guarda lezione

Let's manage HTTP calls in Angular with RxJS and HttpClient without creating a dedicated Service. I'll show you how to transform responses into Observables and handle data asynchronously.

Guarda lezione

I'll show you how to properly integrate Observables into Angular Services, using 'map' and 'filter' operators to transform HTTP response data before delivering it to components.

Guarda lezione

Let's analyse the difference between Subject and BehaviorSubject in RxJS: when to use each, why BehaviorSubject replays its last value to new subscribers, and how to share real-time data across components.

Guarda lezione

We'll build a shared Angular Service with BehaviorSubject to manage global application state and keep multiple components in sync through a single reactive data stream.

Guarda lezione

I'll explain how to prevent memory leaks in Angular using the 'takeUntil' operator combined with the 'ngOnDestroy' lifecycle hook — an essential technique for managing RxJS subscriptions correctly.

Guarda lezione

Let's compare 'switchMap', 'mergeMap' and 'concatMap' with practical Angular examples: I'll show how each one affects HTTP request ordering and when to pick one over the others.

Guarda lezione

I'll show you how to use 'switchMap' with Angular HttpClient to automatically cancel the previous HTTP request on every new emission — perfect for real-time search against REST APIs.

Guarda lezione

I'll show you how to use RxJS 'mergeMap' to fire multiple HTTP requests in parallel with Angular HttpClient, fetching data from several APIs simultaneously without blocking the application.

Guarda lezione

Let's use 'concatMap' to manage sequential REST API calls in Angular: each request only starts after the previous one completes, guaranteeing the correct order of operations.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 15
  • Duration 2h 55m
  • Difficulty intermedio
  • Language it
  • Certificate No

Recently viewed