Angular 2 access base href
<p>I have a code in my solution which gets baseHref of an app</p>

<pre><code>constructor( private router: Router) {
    let baseHref = this.router._location._baseHref;
</code></pre>

<p>You could see what I am getting it via private properties. Is there other way to get base url? aka the url before router added it's parts?</p>

<p>I am using angular2 rc4</p>

<p>Thanks</p>