New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signal(Observable<T>) to signal<T>() operator #55675
Comments
I personally find using toSignal() and toObservable() perfectly reasonable here since you precisely want to transform a signal to an observable and vice-versa. The code could be simplified to
|
It is indeed clearer, thank you for that, but still, don't you think it looks complicated ? |
No. It's very explicit. |
Well on that we agree, maybe I should have said concise then ... Can this issue remain open, just to have more opinions ? (Thanks again for the more concise way !) |
@MGX-CODING mayby this will cover Your needs https://ngxtension.netlify.app/utilities/signals/derived-async/ it will look like this: $control = signal(new FormControl(''));
$valueChanges = derivedAsync(() => $control().valueChanges); |
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
Here is a quick example of the requested feature (of course it has no value in itself) :
STACKBLITZ
Proposed solution
Alternatives considered
The code of the example itself.
This is not the first time I have the need for something like this, and as far as I'm aware, there is no easy way to do something similar (please correct me if I'm wrong)
The text was updated successfully, but these errors were encountered: