angular / 11.2.14 / api / common / document.html /

DOCUMENT

const

A DI Token representing the main rendering context. In a browser this is the DOM Document.

See more...

const DOCUMENT: InjectionToken<Document>;

Description

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 in a Web Worker).

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/DOCUMENT