From fd45d590ef924c25903832086a63172f98ea189c Mon Sep 17 00:00:00 2001 From: David Sanders Date: Sun, 21 Jul 2013 11:25:23 -0600 Subject: docs($window): improve style and clarify wording --- src/ng/window.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ng/window.js b/src/ng/window.js index 03e0ff5d..72528efe 100644 --- a/src/ng/window.js +++ b/src/ng/window.js @@ -10,8 +10,10 @@ * it is a global variable. In angular we always refer to it through the * `$window` service, so it may be overridden, removed or mocked for testing. * - * All expressions are evaluated with respect to current scope so they don't - * suffer from window globality. + * Expressions, like the one defined for the `ngClick` directive in the example + * below, are evaluated with respect to the current scope. Therefore, there is + * no risk of inadvertently coding in a dependency on a global value in such an + * expression. * * @example -- cgit v1.2.3