https://github.com/angular/angular
Raw File
Tip revision: b40b5576df83745c42a45c6379038a51a90f8ac0 authored by Kara Erickson on 08 April 2020, 19:28:12 UTC
release: cut the v10.0.0-next.1 release
Tip revision: b40b557
dom_tokens.ts
/**
 * @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');
back to top