Angular · Junior · Question 43 of 75
How do you create a navigation link without a full page reload?
- ✓Correct answer:
<a routerLink="/users">Users</a> - 2
<a href="/users">Users</a>always works the same way - 3
<router-link to="/users">
Explanation
routerLink navigates on the client. routerLinkActive="active" adds a class when the link matches the current URL. A plain href reloads the whole application.