1

$rootScope.$emit flows up to $rootScope and $rootScope.$broadcast flows down the scope to $rootScope and all $scope's in angularjs. I am still confused of what exactly to use for angularjs loader indicator .

RK6
  • 424
  • 1
  • 5
  • 23

1 Answers1

1

$rootScope.$emit only lets other $rootScope listeners catch it. This is good when you don't want every $scope to get it.

$rootScope.$broadcast is a method that lets pretty much everything hear it.

This might help, You can refer to the original answer from here

Community
  • 1
  • 1
Vikram Singh Jadon
  • 1,007
  • 1
  • 10
  • 23