Exercise - Multicast Operator
The goal of this exercise is to learn how to create a multicasted Observable.
- Open exercise on codesandbox.
I've already imported the necessary rxjs functions and classes for you.
I also created a new
interval()function that will emit a value every 1000 milliseconds.
- Define a new
- Use the
multicast()operator in the
pipe()of the source
- Subscribe to the multicasted observable and log out the next notification values.
- Connect the Subject to the source Observable.