##// END OF EJS Templates
channelstream: utilize $rootScope
ergo -
Show More
@@ -38,7 +38,7 b' function ChannelstreamController($rootScope, stateHolder, userSelfPropertyResour'
38 };
38 };
39 stateHolder.websocket.onmessage = function (event) {
39 stateHolder.websocket.onmessage = function (event) {
40 var data = JSON.parse(event.data);
40 var data = JSON.parse(event.data);
41 $scope.$apply(function (scope) {
41 $rootScope.$apply(function (scope) {
42 _.each(data, function (message) {
42 _.each(data, function (message) {
43 console.log('channelstream-message', message);
43 console.log('channelstream-message', message);
44 if(typeof message.message.topic !== 'undefined'){
44 if(typeof message.message.topic !== 'undefined'){
General Comments 0
You need to be logged in to leave comments. Login now