Add a value setter to Subject #6984
sharshuv-quotient
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My idea is simple, add this setter to Subject:
This, together with the BehaviorSubject's value getter, is going to make it easier and more intuitive to set and read values synchronously, and will specifically make it easier to use utilities that expect a getter & setter. For example, it will be possible to use with angular's two way binding:
I personally can't think of why would this addition be harmful, and I do think it's going to be useful.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions