You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: angularjs/angular.d.ts
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -539,9 +539,29 @@ declare module angular {
539
539
$applyAsync(exp: string): any;
540
540
$applyAsync(exp: (scope: IScope)=>any): any;
541
541
542
+
/**
543
+
* Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners.
544
+
*
545
+
* 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.
546
+
*
547
+
* Any exception emitted from the listeners will be passed onto the $exceptionHandler service.
548
+
*
549
+
* @param name Event name to broadcast.
550
+
* @param args Optional one or more arguments which will be passed onto the event listeners.
* Dispatches an event name upwards through the scope hierarchy notifying the registered $rootScope.Scope listeners.
557
+
*
558
+
* The event life cycle starts at the scope on which $emit was called. All listeners listening for name event on this scope get notified. Afterwards, the event traverses upwards toward the root scope and calls all registered listeners along the way. The event will stop propagating if one of the listeners cancels it.
559
+
*
560
+
* Any exception emitted from the listeners will be passed onto the $exceptionHandler service.
561
+
*
562
+
* @param name Event name to emit.
563
+
* @param args Optional one or more arguments which will be passed onto the event listeners.
0 commit comments