mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs($rootScope): fix $on listener signature doc
Added args in $on() listener syntax declaration
This commit is contained in:
parent
c0d638a94b
commit
4ccd9eb883
1 changed files with 2 additions and 2 deletions
|
|
@ -614,8 +614,8 @@ function $RootScopeProvider(){
|
|||
* @param {function(event)} listener Function to call when the event is emitted.
|
||||
* @returns {function()} Returns a deregistration function for this listener.
|
||||
*
|
||||
* The event listener function format is: `function(event)`. The `event` object passed into the
|
||||
* listener has the following attributes
|
||||
* The event listener function format is: `function(event, args...)`. The `event` object
|
||||
* passed into the listener has the following attributes:
|
||||
*
|
||||
* - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
|
||||
* - `currentScope` - {Scope}: the current scope which is handling the event.
|
||||
|
|
|
|||
Loading…
Reference in a new issue