takeUntilDestroy in Angular v16 #300
Replies: 2 comments 8 replies
-
If you look at the following code, then when the component is destroyed, the second subscription will exist. I just can't understand why and how to make the code work for any number of subscriptions in the component? Perhaps I misunderstood something?
Already answered in StackOverflow (https://stackoverflow.com/questions/76279303/angular-16-takeuntildestroyed-operator-with-two-subscribe-methods)Thanks |
Beta Was this translation helpful? Give feedback.
-
Hey. For some odd reason I can't use interval(500)
.pipe(takeUntilDestroyed())
.subscribe((count) => console.log(count)); I receive
Am I missing something or is this a bug in my Angular 16.1.0? |
Beta Was this translation helpful? Give feedback.
-
Discussion about the article "takeUntilDestroy in Angular v16". Enjoy! 🥳
Beta Was this translation helpful? Give feedback.
All reactions