emitting event multiple times in angular gives error cannot read properties of undefined "(reading) emit"

I have an event binding on button (click)="onStart()". It emits the event this.numEmitter for the first time in setInterval after that it gives the error ERROR TypeError: Cannot read properties of undefined (reading ’emit’) incNum: number; timer: number; @Output() numEmitter: EventEmitter<number> = new EventEmitter(); constructor() { this.timer = -1; this.incNum = 0; } onStart() {… Read More emitting event multiple times in angular gives error cannot read properties of undefined "(reading) emit"