Angular RxJS Observable: takeUntil vs. unsubscribe with a Subscription [closed]
Option 1: clean & explicit. Works like a charm Option 2: more procedural, less stream-like. Works like a charm. Note that your stream will not get a ‘complete’ event which can cause unexpected behaviour Option 3: takeWhile – will have the subscription stay around untill an emission is created and then the takeWhile is evaluated. … Read more