take-while-alive

Custom rxjs operator to automatically unsubscribe any subscription when an Angular component/service is destroyed

take-until-destroy

A simple way to unsubscribe from an RxJs stream in Angular (2+) when the component is destroyed