Angular · Function
toSignal
Converts an RxJS Observable into an Angular Signal. The signal always exposes the latest emitted value and can clean up its subscription with the Angular injection context.
Last updated
Syntax
toSignal<T>(source: any, options?: ToSignalOptions<T>): Signal<T | undefined>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ToSignalOptionstoObservabletakeUntilDestroyedoutputFromObservableoutputToObservable