Skip to content

Commit 5ce4d95

Browse files
JeanMechethePunderWoman
authored andcommitted
docs: update doc to clear up difference between toObservable/ outputToObservable (#63836)
TLDR: only `toObservable` emits synchronously on subscription. fixes #57224 PR Close #63836
1 parent 73bf0c6 commit 5ce4d95

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/core/rxjs-interop/src/output_to_observable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {Observable} from 'rxjs';
1212
/**
1313
* Converts an Angular output declared via `output()` or `outputFromObservable()`
1414
* to an observable.
15+
* It creates an observable that represents the stream of "events firing" in an output.
1516
*
1617
* You can subscribe to the output via `Observable.subscribe` then.
1718
*

packages/core/rxjs-interop/src/to_observable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface ToObservableOptions {
3434

3535
/**
3636
* Exposes the value of an Angular `Signal` as an RxJS `Observable`.
37+
* As it reflects a state, the observable will always emit the latest value upon subscription.
3738
*
3839
* The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.
3940
*

0 commit comments

Comments
 (0)