https://github.com/angular/angular
Raw File
Tip revision: 5d5b51599d8b2796b2403161f2c0e46ce7bdf58e authored by Andrew Kushnir on 07 December 2022, 21:45:33 UTC
release: cut the v15.0.3 release
Tip revision: 5d5b515
dom_tokens.ts
/**
 * @license
 * Copyright Google LLC 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