In my angular application I have to opened a new window and dispatched an event back to the controller .The code is working on Chrome and Firefox but it does not work for Edge
Below is the code from the external file
try {
var ev = new Event('abc');
ev['data'] = model;
window.opener.dispatchEvent(ev);
} catch (e) {
alert(e);
}
In the external window i get the alert ERROR:invalid argument.
in the angular component i have the listener
@HostListener('window:abc', ['$event'])
Couldn't get much info from other answers.
Please Guide Thanks