2015-10-02 09:53:57 -07:00
|
|
|
import {OpaqueToken} from 'angular2/src/core/di';
|
2015-11-06 17:34:07 -08:00
|
|
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
2015-07-24 15:28:44 -07:00
|
|
|
|
2015-09-28 19:58:38 -07:00
|
|
|
/**
|
|
|
|
* 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).
|
|
|
|
*/
|
2015-08-10 21:42:47 -07:00
|
|
|
export const DOCUMENT: OpaqueToken = CONST_EXPR(new OpaqueToken('DocumentToken'));
|