Author: Thomas Laforge
You begin with an application that has basic navigation and anchor navigation in the HomeComponent
. However, using href
recreates the path each time and refreshes the page.
- Your task is to refactor this application to use the built-in navigation tool to better fit within the Angular Framework. You can explore the router, but it's better to stay within the template and use the
RouterLink
directive. - To improve the user experience, add smooth scrolling.
- Fork the project
- clone it
- npm ci
npx nx serve anchor-scrolling
- ...work on it
- Commit your work
- Submit a PR with a title beginning with Answer:21 that I will review and other dev can review.