aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/rootScope.js
diff options
context:
space:
mode:
authorCaio Cunha2013-10-23 20:02:30 -0400
committerMatias Niemelä2013-10-25 23:53:15 -0400
commit0a8473977648413cf9154e22521701ce266f7659 (patch)
tree1c3c8bf18e16640791435a291205a7ae9cb93f3d /src/ng/rootScope.js
parent79223eae5022838893342c42dacad5eca83fabe8 (diff)
downloadangular.js-0a8473977648413cf9154e22521701ce266f7659.tar.bz2
docs($rootScope): added $eval `locals` parameter documentation
Added documentation for `locals` parameter of `$eval` method.
Diffstat (limited to 'src/ng/rootScope.js')
-rw-r--r--src/ng/rootScope.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 8be495db..97e396ab 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -710,7 +710,8 @@ function $RootScopeProvider(){
*
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
* - `function(scope)`: execute the function with the current `scope` parameter.
- *
+ *
+ * @param {(object)=} locals Local variables object, useful for overriding values in scope.
* @returns {*} The result of evaluating the expression.
*/
$eval: function(expr, locals) {