This is used by Angular (2+ maybe Angular JS too -not sure of that) to control navigation between UI components. It acts like a Controller/traffic cop, passing state information on via a URL. Here is the official link to the documentation
Questions tagged [routerlink]
312 questions
0
votes
0 answers
How to use routerLink that go to child without changing parent dynamic param
I am trying to route to a child link without changing parent param.
{
path: ':lang',
children: [
{ path: 'books', component: BooksComponent },
]
}
This is what I tried I also tried other methods but haven't worked till…

Raymond the Developer
- 1,576
- 5
- 26
- 57
0
votes
1 answer
Angular 2 - not working with Webstorm 11.01 and Jade 4.2
I have been working through the Angular 2 guide example that can be found at this location: https://plnkr.co/edit/I4ArEQTniO7MJtfzpBWl?p=preview .
On my desktop this application works fine with the inline template code but as soon as I change to…

j-terranova
- 539
- 1
- 10
- 23
0
votes
1 answer
Angular2 [routerLink] works, this.router.navigate seems to crash the app
I'm having trouble with routes in an Angular2 application where using a button like this works fine:
But using the same route in a function fails - the page seems to load for a split…

Stephen R. Smith
- 3,310
- 1
- 25
- 41
0
votes
0 answers
routerLink stopped working in @angular/cli
I just updated my project from angular-cli to release version @angular/cli. Everything was working fine before but after upgradation, It stopped working. If I remove routerLink then it works fine. Please help me to solve this.

Jeeten Parmar
- 5,568
- 15
- 62
- 111
0
votes
2 answers
Build query string params through a series of router links
Is it possible to configure router links to simply add to the query string so that we can build a query string through a series of links?
Given the url:
http://localhost/app
And a link somewhere on the page similar to this:
user3244479
0
votes
0 answers
Angular 2 routerLink not working inside ng2-bootstrap dropdown inside navbar
I am using ng2-bootstrap navbar with dropdown inside of the navbar. If you look about half way down in the snippet below where the condition for *ngIf="userHasPermission()" you'll see the content for the dropdown menu. I've discovered that I must…

Vector
- 330
- 2
- 12
0
votes
2 answers
routerLink from Object in Angular2
I'm trying to build a "Team Member" page from JSON data.
I can create the page with basic things like firstName, lastName, position.
Each team member has their own page with a little more information
What I cant figure out is how to include the…

Glenn Sampson
- 1,188
- 3
- 12
- 30
0
votes
1 answer
Angular 2 - How do I pass a parameter to a routerLink that is binded property?
I'm having a bit of trouble finding some documentation as to how I can pass a binded property as a parameter in my routerLink.
{{…

Matthew Meppiel
- 966
- 3
- 14
- 29
0
votes
1 answer
CLOSED - angular2 semantic-ui dropdown fails on route change
(First post ever .. sorry for any mistakes)
I have been playing around with Angular2 and Semantic-UI dropdown.
I'm losing my mind since it's been two days and I can't figure it out the problem.
I have a component "dropdown.component" when it runs…

Sandro Maio
- 1
- 2
-1
votes
1 answer
-1
votes
2 answers
Set RouterLink value dynamically after click
In the Angular application, there is a grid in which the first column is Name, and the routerLink value is decided based on the runtime API call and its return type. Shown below:
…

Mayank Gupta
- 45
- 7
-1
votes
1 answer
when clicking on the routerLink angular throws ASSERTION ERROR
This is my first angular 8 application, and now when I am trying to setup routerlinks and when I click on the links I get from the google console the error:
Error: ASSERTION ERROR: Provided Component class doesn't contain Component definition.…

user2631359
- 3
- 3
-1
votes
1 answer
How to switch icon when containing class 'active' in Vuejs
I have a bottom navbar with icons. How can when the router-link has class 'active' it will turn into an active icon? Default icon 1 is active.
Icon 1 active
…

Phúc Trần
- 3
- 2
-1
votes
2 answers
routerlink second parameter get "undefined" instead of its value
i want the functionality of writing in the input bar, and when i press the button, i want it to pass me to: "../search/".
but instead i get "../search/undefined".
this is the code:

librogil
- 91
- 1
- 7
-1
votes
1 answer
How can I convert routerLink to href?
I have difficulty converting routerLink in href.

user12707940
- 131
- 2
- 5
- 16