function callbackfunction(){
// window['angularComponentRef'] might not yet be set here though
window['angularComponent'].zone.run(() => {
runThisFunctionFromOutside();
});
}
constructor(private _ngZone: NgZone){
window['angularComponentRef'] = {component: this, zone: _ngZone};
}
ngOnDestroy() {
window.angularComponent = null;
}
window['angularComponentRef'].zone.run(() => {window['angularComponentRef'].component.callFromOutside('1');})
window.angularComponentRef.zone.run(() => {window.angularComponentRef.componentFn('2');})