packages/core/src/lib/utils/browser-globals.ts
Methods |
getNativeDocument |
getNativeDocument()
|
Returns :
any
|
import { Provider } from '@angular/core';
export class WindowRef {
getNativeWindow(): any { return window; }
}
export class DocumentRef {
getNativeDocument(): any { return document; }
}
export const BROWSER_GLOBALS_PROVIDERS: Provider[] = [WindowRef, DocumentRef];