Following on from this post, I have the following
Observable.combineLatest(
this.translate.get("key1"),
this.translate.get(""),
this.translate.get("key3"),
this.translate.get("key4")
)
.subscribe(([result1, result2, result3, result4]) => {
console.log(result1);
console.log(result2);
console.log(result3);
console.log(result4);
},
error => {
console.log(`${error}`);
});
At line 2 I get an error, but this does not seem to go into the error
handler above. Unfortunately the examples and doco I find don't seem to include how to catch errors (assume the above would work).
Does anyone have any ideas on how to do this?