ingredients : Array
additionalIngredients : Array
In my code, I have two different methods for subscribing:
this.ingredients.valueChanges.subscribe(val=> {
console.log(val);
}
this.additionalIngredients.valueChanges.subscribe(val2=> {
console.log(val2);
}
I am looking to combine val and val2 in a single function. How can I achieve this? (or perhaps create val3 which is the sum of val and val2)