parent
a7b2ab771e
commit
4ed642f921
|
@ -11,11 +11,8 @@ export class AnchorBasedAppRootUrl extends AppRootUrl {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("");
|
super("");
|
||||||
// compute the root url to pass to AppRootUrl
|
// compute the root url to pass to AppRootUrl
|
||||||
var rootUrl: string;
|
|
||||||
var a = DOM.createElement('a');
|
var a = DOM.createElement('a');
|
||||||
DOM.resolveAndSetHref(a, './', null);
|
DOM.resolveAndSetHref(a, './', null);
|
||||||
rootUrl = DOM.getHref(a);
|
this.value = DOM.getHref(a);
|
||||||
|
|
||||||
this.value = rootUrl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,5 @@ import {isBlank} from 'angular2/src/core/facade/lang';
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AppRootUrl {
|
export class AppRootUrl {
|
||||||
private _value: string;
|
constructor(public 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; }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue