I would just like to know how to create a global variable from within a class function inside Angular 5. My problem is that I create a setInterval variable in one function, but then I don't know how to access that variable to do clearInterval(var) in a different function. Any advice on how to solve this problem?
Here is a simple progress bar explaining my problem, the commented out //clearInterval(RunningTimer); is where I am stuck at
https://stackblitz.com/edit/angular-y8zcio?file=app%2Fapp.component.html