Currently, I am attempting to incorporate NgZone into my Angular project:
constructor(
private fishboneService: FishboneService,
private zone: NgZone,
) {
window['angularComponentReference'] = {
zone: this.zone,
componentFn: (value: any) => this.getDataFromOutside(value),
component: this
};
console.log('reference added');
}
Unexpectedly, I am encountering the following error message:
The element implicitly has an 'any' type due to the index expression not being of type 'number'.
19 window['angularComponentReference'] = {