docs: update doc to clear up difference between toObservable/ outputToObservable (#63836)

TLDR: only `toObservable` emits synchronously on subscription.

fixes #57224

PR Close #63836
This commit is contained in:
Matthieu Riegler 2025-09-16 16:32:17 +02:00 committed by Jessica Janiuk
parent 73bf0c6094
commit 5ce4d9522d
2 changed files with 2 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import {Observable} from 'rxjs';
/**
* Converts an Angular output declared via `output()` or `outputFromObservable()`
* to an observable.
* It creates an observable that represents the stream of "events firing" in an output.
*
* You can subscribe to the output via `Observable.subscribe` then.
*

View file

@ -34,6 +34,7 @@ export interface ToObservableOptions {
/**
* Exposes the value of an Angular `Signal` as an RxJS `Observable`.
* As it reflects a state, the observable will always emit the latest value upon subscription.
*
* The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.
*