Nov 23, 2022
You can store the Observable (not the subscription) in a variable, similar to what I do in the the very first example of this post. Then you'd have multiple subscriptions to it (one on click and one in the polling mechanism).
You can store the Observable (not the subscription) in a variable, similar to what I do in the the very first example of this post. Then you'd have multiple subscriptions to it (one on click and one in the polling mechanism).
Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com