A reference to the browser's
window object. While
$window service, so it may be overridden, removed or mocked for testing.
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.
© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.