* @ngdoc object * @name ng.$window * * @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, so it
()
| 8437 | </doc:example> |
| 8438 | */ |
| 8439 | function $WindowProvider(){ |
| 8440 | this.$get = valueFn(window); |
| 8441 | } |
| 8442 | |
| 8443 | /** |
| 8444 | * Parse headers into key value object |