
Angular Cookbook
By :

In this recipe, you'll learn to use RxJS operators' static 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 static methods in the subscription to modify the output, to see it on the user interface (UI). After that, we'll split the streams using the partition
static operator. And finally, we'll be merging the partitioned streams using the merge
static operator to see their output.
The project for this recipe resides in chapter05/start_here/rxjs-operators-static-methods
.
npm install
to install the dependencies of the project. ng serve -o
. This should open the app in a new browser tab, and you should see something like this:
Figure 5.5 – The rxjs-operators-static...