Handle Clicks and Intervals Together with Merge

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Observable.merge allows you take two different source streams and use either one of them to make changes to the same state of your data. This lesson shows how you can use a stream of clicks and an interval stream and use either one to update the clock.

Eric Bolikowski
Eric Bolikowski
~ 5 years ago

Hi! I'm new to Rx.js and Typescript. Wondering if there's an easier way to import all dependencies? It seems like a bit of a hassle to have to add a new import statement every time we want to use a new method...

Jesse
Jesse
~ 4 years ago

@Eric You could probably import the whole libraries and it would work, but be very difficult to sort out later what your not using. So import as you go is a better practice. There are some IDEs that support auto importing when you first reference something that has not yet been imported. https://blog.jetbrains.com/webstorm/2016/04/angular-2-workflow-in-webstorm/#ng2-imports