refactor: move angular source to /packages rather than modules/@angular
This commit is contained in:
19
packages/platform-browser/src/dom/dom_tokens.ts
Normal file
19
packages/platform-browser/src/dom/dom_tokens.ts
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @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
|
||||
* Contexts are not the same (e.g. when running the application into a Web Worker).
|
||||
*
|
||||
* @stable
|
||||
*/
|
||||
export const DOCUMENT = new InjectionToken<Document>('DocumentToken');
|
Reference in New Issue
Block a user