angular.scope.$broadcast

Description

Dispatches an event name downwards to all child scopes (and their children) notifying the registered angular.scope.$on listeners.

The event life cycle starts at the scope on which $broadcast was called. All listeners listening for name event on this scope get notified. Afterwards, the event propagates to all direct and indirect scopes of the current scope and calls all registered listeners along the way. The event cannot be canceled.

Any exception emmited from the listeners will be passed onto the $exceptionHandler service.

Usage

angular.scope.$broadcast(name, args);

Parameters