From 0a8473977648413cf9154e22521701ce266f7659 Mon Sep 17 00:00:00 2001 From: Caio Cunha Date: Wed, 23 Oct 2013 20:02:30 -0400 Subject: docs($rootScope): added $eval `locals` parameter documentation Added documentation for `locals` parameter of `$eval` method. --- src/ng/rootScope.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ng/rootScope.js') 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) { -- cgit v1.2.3