Do AngularJS apps behave like windows? And is it possible to add an event listener to them?
I am currently working on a proof of concept to see if an Angular app can communicate with a server without impacting the host.
One potential solution I have thought of is using .postMessage()
to send a request to the server from a hidden iframe
, then having the host in the iframe
use .postMessage()
to send the response back. I have successfully done this with nested iframes
, but now I want to apply it to an Angular app.
Is this achievable?