
Angular Cookbook
By :

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.
The project that we are going to work with resides in chapter05/start_here/rxjs-operators-instance-methods
, inside the cloned repository.
npm install
to install the dependencies of the project. 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:
Figure 5.1 – The rxjs-operators-instance-methods app running on http://localhost:4200
Now that we have the app running, we will move on to the steps for the recipe...