refactor: move DOCUMENT from platform/browser to common
This commit is contained in:

committed by
Jason Aden

parent
72747e5213
commit
2a7ebbe982
@ -8,12 +8,14 @@
|
||||
|
||||
import {InjectionToken} from '@angular/core';
|
||||
|
||||
import {DOCUMENT as commonDOCUMENT} from '@angular/common';
|
||||
|
||||
/**
|
||||
* 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 into a Web Worker).
|
||||
*
|
||||
* @stable
|
||||
* @deprecated, import from `@angular/common` instead.
|
||||
*/
|
||||
export const DOCUMENT = new InjectionToken<Document>('DocumentToken');
|
||||
export const DOCUMENT = commonDOCUMENT;
|
||||
|
Reference in New Issue
Block a user