'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;
		});
	}
]);

@@ -103,18 +103,8 @@
 us',
- 'Socket',
 %0A%09fu
@@ -121,20 +121,8 @@
 ope,
- $rootScope,
  Aut
@@ -143,16 +143,8 @@
 enus
-, Socket
 ) %7B%0A
@@ -486,139 +486,10 @@
 %7D);%0A
-%09%09%0A%09%09Socket.on('article.created', function(article) %7B%0A%09%09%09console.log(article);%0A                  $rootScope.myValue=true;%0A%09%09%7D);%0A
 %09%7D%0A%5D);
-%0A

Revert "fixing sockets"