* @ngdoc service * @name $window * @this * * @description * A reference to the browser's `window` object. While `window` * is globally available in JavaScript, it causes testability problems, because * it is a global variable. In angular we always refer to it through the * `$window` service,
()
| 20727 | </example> |
| 20728 | */ |
| 20729 | function $WindowProvider() { |
| 20730 | this.$get = valueFn(window); |
| 20731 | } |
| 20732 | |
| 20733 | /** |
| 20734 | * @name $$cookieReader |