** EDIT: I have just confirmed that you can recreate the problem I'm talking about in your StackBlitz example (the first one) by removing the timeout. For example, this edit to the StackBlitz component produces the same error:
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { CircularGaugeComponent, ILoadedEventArgs, GaugeTheme } from '@syncfusion/ej2-angular-circulargauge';
/**
* Sample for default circular gauge
*/
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
@ViewChild('fifthgauge')
public fifthgauge: CircularGaugeComponent;
public tooltipInterval1: number;
public lineStyle5: Object = { width: 5, color: 'grey' };
public labelStyle5: Object = {
position: 'Inside',
font: { size: '12px', color: 'grey' }
};
public majorTicks1: Object = {
width: 1,
height: 10,
interval: 625
};
public minorTicks1: Object = {
height: 5,
width: 1,
interval: 208
};
public pointers5: Object[] = [{
radius: '100%',
animation: { enable: true, duration: 900 },
value: 70,
pointerWidth: 6,
cap: { radius: 7 },
needleTail: { length: '7%', color: '#923C99' }
}];
ngAfterViewInit(): void {
if (document.getElementById('container5')) {
this.fifthgauge.setPointerValue(0, 0, 500);
}
}
constructor() {
// code
};
}