Angular — Manage your unsubscription with the class inheritance feature
2 min readApr 30, 2020
RxJS is a common library in the world of Angular. If you have been using RxJS for some time, you may have already faced the unsubscription issue. In simple, after making a subscription in Angular, you will need to manually unsubscribe it most of the cases at a certain point to avoid memory issues. One of the most common ways is to unsubscribe when the component is destroyed:
export class TestComponent implements OnDestroy {
subscription; constructor(
private testService…