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
-1
votes
2 answers
Passing an object's string value to component using a button Angular
In my html template of my component 'a', I have a button which is used to navigate to an other component :
So clicking on this button made…

Fealo
- 99
- 1
- 4
- 14
-1
votes
3 answers
How to add queryParams without routerLink Click in angular?
I wonder add queryParams to url without router.navigateByUrl or routerLink Click in angular
I did not try anything
add Query params to url

June Lee
- 357
- 5
- 16
-1
votes
3 answers
Passing value from typescript to routerlink
I have a property in my typescript file
subject.component.ts
subject: string;
this.subject = "angular";
I want to pass this to my routerlink in my HTML file
subject.component.html
[routerLink]="[subject,'area']"
app.routes.ts
path: 'angular',
…

OneXer
- 303
- 9
- 20
-1
votes
2 answers
How do I link internal files in Angular?
I'm trying to link my login page from the navbar. This is what I have for navbar:
-1
votes
3 answers
Creating a session timeout function, which can display timer and redirect to previous page on timeout in angular
I want to create a session timeout function for a payment page, where the timer will be displayed in my webpage and after 5 minutes, the payment session will expire and user is redirected to the previous page. I am using angular 4 for my front end,…

BlizZard
- 587
- 5
- 22
-1
votes
1 answer
Angular CLI v1.6.8 Routing & Navigating
I want ask some question about routing and navigating in angular CLI v1.6.8
In HTML, we can use:
Hello World
Link How to use it in routerLink? I can't use href because I want to make SPA Thanks before
Hans Stefanus
- 19
- 2
-1
votes
4 answers
binding data from get parameters angular router
how to get value from parameters in angular routerlink ??
this my code
Component.ts :
Hotels: struct_hotel;
id : struct_hotel['id']
constructor(
private activatedRoute: ActivatedRoute,
private _service: ResultService)
{
…

Shaugi
- 419
- 2
- 8
- 18
-1
votes
1 answer
Bind links of router link angular4
I'm working on an Angular4 project. Everything works great till now, but I'm finding myself hard coding the path of routerlink directly into the html templates:
link
I want to avoid it somehow and bind it to the…

maryum375
- 727
- 1
- 10
- 22
-1
votes
1 answer
Configurate RouterLink in a botton
I'm practicing Angular 2, and configured a button with a password entered and a correct one to redirect to a second page. I configured the routing but I do not know how to do it so that it is validated and then redirected.
What I currently have…

Diego Aaron
- 386
- 1
- 6
- 19
-2
votes
2 answers
Angular routerlink navigate to simple page instead of page/page
I have two pages, home and player, and i want on the home page to nabvigate to the player page but without being with this format home/player
When i use routerLink="player", it got an error because the link goes to home/player, instead of just…

Drprince100 100
- 79
- 5
-2
votes
1 answer
SOLVED! Angular 9 routerlink and router-outlet problems
I have a problem with a exercise that i'm current doing and i can't finish because of the routes, I have a child view and can't use routerLink is not clickable!
I have a view for making the login that redirect to a home component that has child…

Mr_mufy
- 11
- 1
- 4
-3
votes
1 answer
Angular 4 router navigate
onClickMe(id)
{
let decimal = this.date.getMonth()+1;
this.router.navigate(['/RestaurantView/'+this.nembPerson+'/'+this.timereservation+'/'+this.date.getDate()+'/'+decimal+'/'+this.date.getFullYear()+'/'+id]) ;
}
this is my router Navigate , i…

Ghazi Gassara
- 1
- 1