old_contents: 'use strict';
  
  angular.module('core').controller('HeaderController', ['$scope', 'Authentication', 'Menus', 'Socket',
  	function($scope, $rootScope, Authentication, Menus, Socket) {
  		$scope.authentication = Authentication;
  		$scope.isCollapsed = false;
  		$scope.menu = Menus.getMenu('topbar');
  
  		$scope.toggleCollapsibleMenu = function() {
  			$scope.isCollapsed = !$scope.isCollapsed;
  		};
  
  		// Collapsing the menu after navigation
  		$scope.$on('$stateChangeSuccess', function() {
  			$scope.isCollapsed = false;
  		});
  		
  		Socket.on('article.created', function(article) {
  			console.log(article);
                    $rootScope.myValue=true;
  		});
  	}
  ]);
  
new_contents: 'use strict';
  
  angular.module('core').controller('HeaderController', ['$scope', 'Authentication', 'Menus',
  	function($scope, Authentication, Menus) {
  		$scope.authentication = Authentication;
  		$scope.isCollapsed = false;
  		$scope.menu = Menus.getMenu('topbar');
  
  		$scope.toggleCollapsibleMenu = function() {
  			$scope.isCollapsed = !$scope.isCollapsed;
  		};
  
  		// Collapsing the menu after navigation
  		$scope.$on('$stateChangeSuccess', function() {
  			$scope.isCollapsed = false;
  		});
  	}
  ]);
subject: Revert "fixing sockets"