I have a subscription where I get some messages from the store to output toastr.
I unsubscribed by subscribe .unsubscribe()
.
How can check that I have really unsubscribe?
subscription!: Subscription;
ngOnInit(): void { }
toastrError(): void {
this.subscription = this.store.select(getMessage).subscribe(m => {
(m.message && m.title) ? this.toastr.error(m.message, m.title) : null;
});
}
singIn(): void {
this.toastrError();
}
ngOnDestroy(): void {
this.subscription.unsubscribe();
}