Alain Chautard
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).

--

--

Alain Chautard
Alain Chautard

Written by Alain Chautard

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

No responses yet