In Angular $broadcast() service is always used to propagate event to all of his child controller and it’s registered parent $rootscope.scope listeners.





$rootScope.$broadcast( 'SummaryEvent' , {

priority: priority

});









$on() service is used to listen on any given type of event raised by $broadcast and $emit service is used to listen on any given type of event raised by $broadcast and $emit

$scope.$on( ''SummaryEvent'' , function (event, args) {

Vm.priority=args.priority

});







AngularJs $broadcast () and $on()







$emit service is similar to $broadcast but it is used to propagate event to upwards through the scope hierarchy and notify to the registered $rootScope.Scope listeners