A signal always has a current value, that you can read at any time. An observable is a stream. It delivers values over time, and only to those who subscribe. HTTP responses arrive later, so they're observables.
Signal
always has a valueread it any timestate
Observable
values over timesubscribe to receiveevents, responses
This observable logs started, sends two titles, then completes. We log before subscribe. Subscribe receives each value, and the completion. Run it. Started was printed only after subscribe. Then came both titles, and done.
main.tstypescript
import { Observable } from 'rxjs';const books$ = new Observable<string>(subscriber => { console.log('Started'); subscriber.next('Dune'); subscriber.next('Emma'); subscriber.complete();});console.log('Before subscribe');books$.subscribe({ next: title => console.log('Got', title), complete: () => console.log('Done'),});
Get only creates the observable. Subscribe is what sends the request. We log a numbered message at each step. Run it. The server received the request, only after subscribe. And the response came last.
app.tstypescript
import { Component, inject } from '@angular/core';import { HttpClient } from '@angular/common/http';@Component({ selector: 'app-root', template: `<p>The steps are in the console.</p>` })export class App { private http = inject(HttpClient); constructor() { const request = this.http.get('/api/books'); console.log('1. Observable created, nothing sent yet'); request.subscribe(() => console.log('3. Response received')); console.log('2. Subscribed, so the request was sent'); }}
Output
1. Observable created, nothing sent yet
2. Subscribed, so the request was sent
API GET /api/books → 200
3. Response received