I have socket.io factory, to automatically $scope.$applay on socket.on:
I have socket:
Weird thing is happening.
I can't acces $rootScope.myVariable in other module.
When I use
I can see object:
scope:
myVariable: 123;
But when I'm trying to acces it:
it is undefined.
When I'm declaring this variable outside socket, everything works perfectly.