Spec-Zone.ru › Angular

outputToObservable

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.

RxJS interop with component and directive outputs

API

function outputToObservable<T>(ref: OutputRef<T>): Observable<T>;
@paramrefOutputRef<T>
@returnsObservable<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.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/rxjs-interop/outputToObservable

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API