---
title: 🟢 Anchor Navigation
description: Challenge 21 is about navigating inside the page with anchor
author: thomas-laforge
challengeNumber: 21
command: angular-anchor-scrolling
sidebar:
  order: 4
---

## Information

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.

## Statement

- 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.
