I have a function exposed on window object. This is getting invoked from my Windows Application.
window.patchTransaction = this.AngularService.myMethod.bind(this);
In AngularService.js
myMethod(val) {
window.alert(val); // argument i am passing from Windows appication
window.alert(this); // undefined
}
How can i get this reference of AngularService inside myMethod?