Vue · Junior · Question 45 of 75
How do you create a navigation link without reloading the page?
- ✓Correct answer:
<RouterLink to="/about">About</RouterLink> - 2
<a href="/about">always works the same way - 3
<router-outlet to="/about">
Explanation
RouterLink renders an <a> with the correct href, handles the click on the client and adds active classes (router-link-active).