mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
73bf0c6094
commit
5ce4d9522d
2 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue