angular-opensource icon indicating copy to clipboard operation
angular-opensource copied to clipboard

Will subscription be unsubscribed like the "async" pipe?

Open Amory0709 opened this issue 2 years ago • 1 comments

Hi Victos,

I am using your package. Thanks for developing it! However, when I use ng-busy to listen to a subscription like this: <div [ngBusy] = "mySubscription"> I don't know if I need to unsubscribe from it. Does ngBusy have the same mechanism as the "async" pipe? Looking forward to your reply.

Thanks, Amori

Amory0709 avatar Jul 06 '22 05:07 Amory0709

The spinner will show until the 'mySubscription' is unsubscribed, that means you can stop the spinner by unsubscribing the 'mySubscription'.

victos avatar Jul 06 '22 08:07 victos