• Overview
@angular/core/rxjs-interop

outputToObservable

function
stablesince v19.0

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.

API

function outputToObservable<T>(ref: OutputRef<T>): Observable<T>;

Description

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.

Jump to details