2017-06-30 13:54:08 -07:00
|
|
|
/**
|
|
|
|
|
* @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
|
2019-10-04 18:50:03 +02:00
|
|
|
* Contexts are not the same (e.g. when running the application in a Web Worker).
|
2017-06-30 13:54:08 -07:00
|
|
|
*
|
2018-10-19 15:06:08 +01:00
|
|
|
* @publicApi
|
2017-06-30 13:54:08 -07:00
|
|
|
*/
|
|
|
|
|
export const DOCUMENT = new InjectionToken<Document>('DocumentToken');
|