The Angular FormControl
has a valueChanges
Observable that states:
Emits an event every time the value of the control changes, in the UI or programmatically.
Is there a way to set the FormControl to ignore programmatic value changes? (Basically the equivalent of OneWayToSource
binding in .NET)
Specifically, the issue I'm facing is that my valueChanges
subscription, I'm updating a bunch the values bound to a bunch of other controls, which then causes valueChanges
to fire for all of them as well, which is problematic as the actions they perform in their valueChanges
handlers conflicts with the control the user actually touched.
setValue
method available, and it seems Angular's change detection is picking up on the changes and firing the events. – Strikebreaker