I am trying to get result from a zipped array of observables themselves zips of array of simple observables. As follows:
a(x) {
const observables = [of(x), of(x+1)];
return zip(observables);
}
b() {
const observables = [a(1), a(2)];
return zip(observables);
}
The rest of the code is asserted to work fine. Actually, when the inner a() function returns a single observable (of array of objects of course, to reflect the zip of observables) the outer zip works fine. Yet when an inner zip is used, the code inside the inner zip is never called.
What am I doing wrong here?
zip(array)
is not the same aszip(arg1, arg2,...)
. – Independent