From f6678c8106a3c05bc68e951e1b2aef8dccc29869 2016-10-04 17:01:20 From: Marcin Lulek Date: 2016-10-04 17:01:20 Subject: [PATCH] channelstream: utilize $rootScope --- diff --git a/frontend/src/components/channelstream.js b/frontend/src/components/channelstream.js index 33885a6..482f1ae 100644 --- a/frontend/src/components/channelstream.js +++ b/frontend/src/components/channelstream.js @@ -38,7 +38,7 @@ function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResour }; stateHolder.websocket.onmessage = function (event) { var data = JSON.parse(event.data); - $scope.$apply(function (scope) { + $rootScope.$apply(function (scope) { _.each(data, function (message) { console.log('channelstream-message', message); if(typeof message.message.topic !== 'undefined'){