linkDOCUMENT
npm Package | @angular/common |
---|---|
Module | import { DOCUMENT } from '@angular/common'; |
Source | common/src/dom_tokens.ts |
const DOCUMENT: any;
linkDescription
A DI Token representing the main rendering context. In a browser this is the DOM Document.
Note: Document might not be available in the Application Context when Application and Rendering Contexts are not the same (e.g. when running the application into a Web Worker).