how to receive window.postmessage event in angular 9
window.addEventListener("message", () => {
this.receiveMessage();
}, false)
how to receive window.postmessage event in angular 9
window.addEventListener("message", () => {
this.receiveMessage();
}, false)
how to receive window.postmessage event in angular 9
constructor(private _authService: AuthService, private _router: Router) {
if (window.addEventListener) {
window.addEventListener("message", this.receiveMessage.bind(this), false);
} else {
(<any>window).attachEvent("onmessage", this.receiveMessage.bind(this));
}
}
how to receive window.postmessage event in angular 9
receiveMessage: any = (event: any) => {
//...
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us