- Problem Statement:
I have a requirement: to open a new window in angular 6 and establish two way communication between the primary and secondary window.
- What I tried
I created a service WindowRef to open a new window/tab using angular "Window". I created an @ngrx/store system to manage state in the app. I am able to manage application state for any number of actions in the primary window, however when I open a new window and try accessing the state, it returns null.
If I can maintain state I can try and use ngStore to dispatch actions and try and establish two way communication channel between the primary and secondary opened window.
Can someone please suggest/ point me to a way to implement the above requirement?