outputFromObservable
function
Declares an Angular output that is using an RxJS observable as a source for events dispatched to parent subscribers.
API
Description
Usage Notes
function outputFromObservable<T>( observable: Observable<T>, opts?: OutputOptions | undefined): OutputRef<T>;
outputFromObservable
OutputRef<T>
Declares an Angular output that is using an RxJS observable as a source for events dispatched to parent subscribers.
The behavior for an observable as source is defined as followed:
- New values are forwarded to the Angular output (next notifications).
- Errors notifications are not handled by Angular. You need to handle these manually.
For example by using
catchError
. - Completion notifications stop the output from emitting new values.
@paramobservable
Observable<T>
@returns
OutputRef<T>
Jump to details