angular/modules/angular2/src/services/app_root_url.ts
Jason Teplitz 771c0170d9 feat(web-workers) Add WebWorker Renderer
Allows angular apps to be rendered from the webworker!
Closes #3052, #3053, and #3097
2015-07-23 18:29:10 -07:00

26 lines
637 B
TypeScript

import {Injectable} from 'angular2/di';
import {isBlank} from 'angular2/src/facade/lang';
/**
* Specifies app root url for the application.
*
* Used by the {@link Compiler} when resolving HTML and CSS template URLs.
*
* This interface can be overridden by the application developer to create custom behavior.
*
* See {@link Compiler}
*/
@Injectable()
export class AppRootUrl {
private _value: string;
constructor(value: string) { this._value = value; }
/**
* Returns the base URL of the currently running application.
*/
get value() { return this._value; }
set value(value: string) { this._value = value; }
}