The use of RxJS Subjects is common, but not without problems. In this lesson we will see how they can be usually safely replaced with plain Observables.
Great video André, thanks!
One note though: Despite being out of scope, using the
share method here is probably worth mentioning, due to the fact that each subscription to
click$ observable will attach a new event listener to the DOM otherwise.
that's very valuable, I can use the first example to convert non-reactive widgets to the ones that support streams