I have tried to tun script outside current Zone:
async ngAfterViewInit(): Promise<void> {
this.ngZone.runOutsideAngular(() => {
await this.run();
});
}
async run() { // TODO }
I get this error:
'await' expressions are only allowed within async functions and at the top levels of modules.ts