How can I combine the following subscriptions into one?
this.form.get("type").valueChanges.subscribe(() => {
this.calcFinalTransports();
})
this.form.get("departure").valueChanges.subscribe(() => {
this.calcFinalTransports();
})
this.form.get("destination").valueChanges.subscribe(() => {
this.calcFinalTransports();
})
this.form.get("stations").valueChanges.subscribe(() => {
this.calcFinalTransports();
})
this.form.valueChanges
? Or do you mean something more like anObservable.merge
? It's not clear. – Livvi