docs($window): improve style and clarify wording

This commit is contained in:
David Sanders 2013-07-21 11:25:23 -06:00 committed by Pawel Kozlowski
parent 88c4963328
commit bdde40e755

View file

@ -10,8 +10,10 @@
* it is a global variable. In angular we always refer to it through the
* `$window` service, so it may be overriden, 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
<doc:example>