DEV Community

Discussion on: Understanding RxJS - Learn From Examples - Part 1

Collapse
 
diamonddarrell profile image
Stas Kohut

A great post, love it! ❤️

One thing though, when you described API of a subject for throwing errors there’s a tiny typo: it’s .error() function, not .throw() 😉

Collapse
 
eransakal profile image
Eran Sakal

Thanks Stas!
Nice catch, I have missed it since the console showed the expected output... the word error :)

Adding the error message to the console showed

 -- error with message: observer.throw is not a function 

and now it shows the expected error

 -- error with message: something bad happened

I updated the post accordingly, Thanks again!