Reverted $scope by $rootScope replacion