I have a code in my solution which gets baseHref of an app
constructor( private router: Router) {
let baseHref = this.router._location._baseHref;
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?
I am using angular2 rc4
Thanks