Join Values from Multiple Observables with RxJS combineLatest

InstructorAndré Staltz

Share this video with your friends

Send Tweet

While merge is an OR-style combination operator, combineLatest is an AND-style combination operator. This lesson explains what AND-style combination means, and how you can join values from two or more Observables in a formula.

🚨 Since we are importing interval from RxJS, we don't need to preface our Observables with Rx.Observable. You can no longer .{operator}, you need to .pipe({operator}) instead. To use combineLatest, you can no longer do {Observable}.combineLatest({Observable}), instead, do combineLatest({Observable}, {Observable}).