I am using Angular 10 and have the following setInterval code working in my local:
Angular 10
setInterval
ngOnInit() { this.myfunc(); set