addIframeCommunication() code example
Example 1: how to receive window.postmessage event in angular 9
window.addEventListener("message", () => {
this.receiveMessage();
}, false)
Example 2: how to receive window.postmessage event in angular 9
receiveMessage: any = (event: any) => {
//...
}