Stock Ticker Application

Let's combine the two streams that we created in the previous lesson and display the filtered stocks in a stock ticker application.

Combining streams using combineLatest

We have two separate streams: one containing all the information about the stock prices, and the other representing the latest data about which stocks the user actually cares about.

We need the latest values from both streams. All that’s needed is another combineLatest constructor and a projection function to keep the labels connected to the values in the stream:

Get hands-on with 1400+ tech skills courses.