File

packages/core/src/lib/utils/browser-globals.ts

Index

Methods

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];

result-matching ""

    No results matching ""