I have a form that do a computation whenever a control input value changes.
Here is my form_group
looks like:
form_group = this.fb.group
Like so, I wanted to observe changes from multiple controls, I was able to do this like this.
import { merge } from 'rxjs';
...
const merged = merge(this.control1.valueChanges,this.control2.valueChanges, this.control3.valueChanges, this.control4.valueChanges);
merged.subscribe(x => console.log(x));
Reference:- https://rxjs-dev.firebaseapp.com/api/index/function/merge