mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
docs($rootScope): correct the $watch listener parameter description
Closes #8322
This commit is contained in:
committed by
Peter Bacon Darwin
parent
fefb7eda40
commit
683d722233
@@ -315,13 +315,12 @@ function $RootScopeProvider(){
|
||||
*
|
||||
* - `string`: Evaluated as {@link guide/expression expression}
|
||||
* - `function(scope)`: called with current `scope` as a parameter.
|
||||
* @param {function()=} listener Callback called whenever the return value of
|
||||
* the `watchExpression` changes.
|
||||
*
|
||||
* - `string`: Evaluated as {@link guide/expression expression}
|
||||
* - `function(newValue, oldValue, scope)`: called with current and previous values as
|
||||
* parameters.
|
||||
* @param {function(newVal, oldVal, scope)} listener Callback called whenever the value
|
||||
* of `watchExpression` changes.
|
||||
*
|
||||
* - `newVal` contains the current value of the `watchExpression`
|
||||
* - `oldVal` contains the previous value of the `watchExpression`
|
||||
* - `scope` refers to the current scope
|
||||
* @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of
|
||||
* comparing for reference equality.
|
||||
* @param {function()=} deregisterNotifier Function to call when the deregistration function
|
||||
|
||||
Reference in New Issue
Block a user