I have the following in a controller.
$rootScope.$on(\'progressbarEvent\', function (event, data) { $rootScope.progresscurrent = data.currentprogress;
The order of dependencies has to be consistent with the array it was declared in:
app.controller('indexcontroller', ['$rootScope','$scope', '$http', 'dataFactory', function ($rootScope, $scope, $http, dataFactory) {