Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fd45d59

Browse files
David Sanderspkozlowski-opensource
David Sanders
authored andcommitted
docs($window): improve style and clarify wording
1 parent bb8c3ec commit fd45d59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/window.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
* it is a global variable. In angular we always refer to it through the
1111
* `$window` service, so it may be overridden, removed or mocked for testing.
1212
*
13-
* All expressions are evaluated with respect to current scope so they don't
14-
* suffer from window globality.
13+
* Expressions, like the one defined for the `ngClick` directive in the example
14+
* below, are evaluated with respect to the current scope. Therefore, there is
15+
* no risk of inadvertently coding in a dependency on a global value in such an
16+
* expression.
1517
*
1618
* @example
1719
<doc:example>

0 commit comments

Comments
 (0)