Is there any way to fire a function every X seconds or minutes in Angular 2+?
For example, what if I want to lauch a myService.refreshloginStatus()
function from my main app.component
every 60 seconds?
I found this question searching on the internet but I have no idea if it could work also for this and how to implement that in Angular...Can someone provide me a concrete usage of this in Angular?
PS: let me know in the comments if in your opinion this question could be a duplicate of the linked one and I have to remove it