mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 08:20:25 +00:00
docs($rootScope): backquote attribute types too on $on
This commit is contained in:
parent
eba64e1f31
commit
06606e2816
1 changed files with 7 additions and 7 deletions
|
|
@ -617,13 +617,13 @@ function $RootScopeProvider(){
|
|||
* 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.
|
||||
* - `name` - {string}: Name of the event.
|
||||
* - `stopPropagation` - {function=}: calling `stopPropagation` function will cancel further event propagation
|
||||
* (available only for events that were `$emit`-ed).
|
||||
* - `preventDefault` - {function}: calling `preventDefault` sets `defaultPrevented` flag to true.
|
||||
* - `defaultPrevented` - {boolean}: true if `preventDefault` was called.
|
||||
* - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or `$broadcast`-ed.
|
||||
* - `currentScope` - `{Scope}`: the current scope which is handling the event.
|
||||
* - `name` - `{string}`: Name of the event.
|
||||
* - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel further event
|
||||
* propagation (available only for events that were `$emit`-ed).
|
||||
* - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag to true.
|
||||
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
|
||||
*/
|
||||
$on: function(name, listener) {
|
||||
var namedListeners = this.$$listeners[name];
|
||||
|
|
|
|||
Loading…
Reference in a new issue