Currently, the recipient window that is targeted by $messageOutgoing event is defined in a confusing way. It is either window.parent or event source of the message that has been received earlier by emitting window. In my opinion, this is confusing and prone to side effects (event source also pollutes $rootScope without necessity).
I think that ability to specify recipient window explicitly would add great value to the module and make it really universally usable. In my case, I needed to send message to window.opener which is not supported out of the box.
Currently, the recipient window that is targeted by
$messageOutgoingevent is defined in a confusing way. It is eitherwindow.parentor event source of the message that has been received earlier by emitting window. In my opinion, this is confusing and prone to side effects (event source also pollutes$rootScopewithout necessity).I think that ability to specify recipient window explicitly would add great value to the module and make it really universally usable. In my case, I needed to send message to
window.openerwhich is not supported out of the box.