mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
be54c580bf
PR Close #33003
20 lines
625 B
TypeScript
20 lines
625 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {InjectionToken} from '@angular/core';
|
|
|
|
/**
|
|
* 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 in a Web Worker).
|
|
*
|
|
* @publicApi
|
|
*/
|
|
export const DOCUMENT = new InjectionToken<Document>('DocumentToken');
|