You need to get a native window handler in Angular, as follows :
import {Injectable} from '@angular/core';
function _window(): any {
// return the native window obj
return window;
}
@Injectable()
export class WindowRef {
get nativeWindow(): any {
return _window();
}
}
Once done you can inject his in your constructor and call the related Webflow methods as seen in attached screen grab.