Working with RxJS operators using instance methods
In this recipe, you'll learn to use RxJS operators' instance methods to work with streams. We'll start with a basic app in which you can start listening to a stream with the interval
method. We'll then introduce some instance methods in the subscription to modify the output.
Getting ready
The project that we are going to work with resides in chapter05/start_here/rxjs-operators-instance-methods
, inside the cloned repository.
- Open the project in Visual Studio Code (VS Code).
- Open the Terminal and run
npm install
to install the dependencies of the project. - Once done, run
ng serve -o
.This should open the app in a new browser tab. Tap the Start Stream button, and you should see something like this:
Now that we have the app running, we will move on to the steps for the recipe...