I'm looking at an example from the angular tour of heroes tutorial where a Subject
is used to add debounce time on search.
However, the code does not contain any kind of unsubscribe on component destroy. Is unsubscribe not needed here? why? and if needed, what is the proper form to do this?
Thanks.