Angular2: unable to navigate to url using location.go(url)
<p>I am trying to navigate to a specific url using location.go service from typescript function. It changes the url in the browser but the component of the url is not reflected in the screen. It stays on the login (actual) screen - say for eg:</p>

<pre><code>constructor(location: Location, public _userdetails: userdetails){
    this.location = location;
}
login(){
    if (this.username &amp;&amp; this.password){
        this._userdetails.username = this.username;
        this.location.go('/home');
    }
    else{
        console.log('Cannot be blank');
    }
}
</code></pre>

<p>Is there a compile method or a refresh method I am missing?</p>