I am using Angular 2.0.0-alpha.30 version. When redirect to a different route, then refresh the browser , its showing Cannot GET /route. Can you help me with figuring why...
Angular 2 – How do I navigate to another route using this.router.parent.navigate('/about')? It doesn’t seem to work. I tried location.go("/about"); as that didn’t work. Basically, once a user has...
This question already has answers here: Angular 2.0 router not working on reloading the browser (32 answers) Closed 5 years ago. I’m new to Angular 2. I have stored...
Recently, I have started playing with angular 2. It’s awesome so far. So, i have started a demo personal project for the sake of learning using angular-cli. With the...
What is the method for redirecting the user to a completely external URL in Angular 2. For example, if I need to redirect the user to an OAuth2 server...
I know I can pass a parameter to routerLink for routes such as /user/:id by writing [routerLink]="...
I want to pass a query parameter prop=xxx. This didn’t work <a [routerLink]="...
NOTE: There are many different answers here, and most have been valid at one time or another. The fact is that what works has changed a number of times...
In my Angular 2 app when I scroll down a page and click the link at the bottom of the page, it does change the route and takes me...
Is there a smart way to go back last page in Angular 2? Something like this._router.navigate(LASTPAGE); For example, page C has a Go Back button, Page A -> Page...