NetanelBasal / ngx-auto-unsubscribe

Class decorator that will automatically unsubscribe from observables

Home Page:https://netbasal.com/automagically-unsubscribe-in-angular-4487e9853a88

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do I have to store all subscriptions in properties ?

rostamiani opened this issue · comments

Do I have to store the subscription to a variable to get it unsubscribed?
I used httpClient services in my project just like this:

this.commerceService.getTotalList(this.listOptions).subscribe(
    // Do whatever
);

Do I have to store all subscriptions in properties ?

Yes, if you're not using the arrayName option.