1 | import {Provider} from '@angular/core';
|
2 |
|
3 | export class WindowRef {
|
4 | getNativeWindow(): any { return window; }
|
5 | }
|
6 |
|
7 | export class DocumentRef {
|
8 | getNativeDocument(): any { return document; }
|
9 | }
|
10 |
|
11 | export const BROWSER_GLOBALS_PROVIDERS: Provider[] = [WindowRef, DocumentRef];
|