$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 .
Asked
Active
Viewed 182 times
1
-
can you explain a little better what the question is exactly? – Yaron Schwimmer Jun 25 '15 at 11:54
1 Answers
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