refactor: move DOCUMENT from platform/browser to common

This commit is contained in:
Alex Rickabaugh
2017-06-30 13:54:08 -07:00
committed by Jason Aden
parent 72747e5213
commit 2a7ebbe982
3 changed files with 24 additions and 2 deletions

View File

@ -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;