The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Handle Clicks and Intervals Together with Merge

Handle Clicks and Intervals Together with Merge

1:36
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
Eric

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...

Avatar
Jesse

@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

In reply to Eric
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?