In my AngularJS application two windows communicate through localStorage in order to use a single websocket connection. The main window listens to messages from server putting incoming data into a localStorage property. The child window use an angular $watch on this property to put incoming data into a grid. The use of different windows and a single connection is a requirement.
The problem is that the controller of the child window seems not to be able to watch the localStorage property until the browser development tool (F12) is not open.
How can I fix this issue?