The toSignal
function in Angular enables the conversion of an RxJS observable into a signal.
It allows you to wrap an observable and handle the initial value of the resulting signal. You can explicitly define the initial value, require a synchronous emission from the observable, and more!