mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +00:00
docs($window): improve style and clarify wording
This commit is contained in:
parent
88c4963328
commit
bdde40e755
1 changed files with 4 additions and 2 deletions
|
|
@ -10,8 +10,10 @@
|
||||||
* it is a global variable. In angular we always refer to it through the
|
* 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.
|
* `$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
|
* Expressions, like the one defined for the `ngClick` directive in the example
|
||||||
* suffer from window globality.
|
* 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
|
* @example
|
||||||
<doc:example>
|
<doc:example>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue