Angular · Junior · Question 73 of 75

What does RouterLink with an array do?

<a [routerLink]="['/users', user.id]">Open</a>

Explanation

Segments are encoded correctly. Query parameters are passed separately with [queryParams].

Further reading

Problem with a question

Angular · Junior · question 73

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz