Building a Stopwatch
Let's see how to build a stopwatch in Rx and the categories of observables we require.
We'll cover the following
Stopwatch project
Enough theory, you’re probably itching to start building something. The first project you’ll take on in this course is a stopwatch that contains three observables. The stopwatch will have two buttons, one for starting and one for stopping, with an observable monitoring each.
Behind the scenes will be a third observable, ticking away the seconds since the start button was pressed in increments of 1/10th
of a second.
This observable will be hooked up to a counter on the page. You’ll learn how to create observables that take input from the user and observables that interact with the DOM to display the latest state of your app.
Working application
Below is the working application of our stopwatch built using observables. You will build these observables in the upcoming lessons.
Feel free to play with it.