As developers, we tend to carry over ideas from past experience and try to reapply them to something new. This lesson teaches you about why you should usually favor switchMap
over subscribe
and why thinking about subscribe
as an event handler can lead to problems.
When i run the code in plunker i get the following error 413 Request Entity Too Large, nginx/1.11.3 How to fix this
so basically switchMap takes every value from the source observable and injects it into the event parameter of that callback function? Who stops the console.log time every time I click on a button again?