Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4ccd9eb

Browse files
unirgyIgorMinar
authored andcommitted
docs($rootScope): fix $on listener signature doc
Added args in $on() listener syntax declaration
1 parent c0d638a commit 4ccd9eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/rootScope.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ function $RootScopeProvider(){
614614
* @param {function(event)} listener Function to call when the event is emitted.
615615
* @returns {function()} Returns a deregistration function for this listener.
616616
*
617-
* The event listener function format is: `function(event)`. The `event` object passed into the
618-
* listener has the following attributes
617+
* The event listener function format is: `function(event, args...)`. The `event` object
618+
* passed into the listener has the following attributes:
619619
*
620620
* - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
621621
* - `currentScope` - {Scope}: the current scope which is handling the event.

0 commit comments

Comments
 (0)