I am working on an angular application. I want to use a timer in my application such that when I call that timer and pass a dynamic value of time it should show a pop up after that.
For example if I start a timer and pass 60secs to it, it should show me a pop up after 60secs. I have code of my pop up just don't know how to implement a timer giving dynamic time at runtime. Also I need to delete timer in case if I get response from backend in those 60secs or what ever the dynamic value I pass for timer. How can I do that?