I have a couple of AngularJS apps, each opening in a different window. The first app is in an iframe and the second is on our main server, i.e. for clarity.
In the iframe app, for certain features, the user has to login. In that situation, a signin button appears which when clicked opens a new browser window and points https:// to our main site's app. Once they signin, the signin page closes properly and the session is maintained.
How do I trigger an event in the iframe app to listen for this? I do have common/shared services, but have been unsuccessful at my attempts to wire this event up.
Update:
Although I have shared services between the apps, the are bound to the associated app's $rootScope. There is no binding between the apps.
Given this, is there a way in either AngularJS, Underscore, or jQuery/JS to capture an event in a separate browser window from another browser window?