# Basic Routing in Angular

Basic Routing in Angular: Providing the Router, Defining the Routes, Linking to Other Pages.

Updated: November 15, 2026

1. [Providing the Router](https://www.ask-codey.com/lessons/basic-routing-in-angular-providing-the-router) (Apprentice): An Angular app is a single page that shows different components for different addresses. The router reads the URL and shows the matching page component in &lt;router-outlet>, without the browser loading a new page. ng new sets it all up for you.
2. [Defining the Routes](https://www.ask-codey.com/lessons/basic-routing-in-angular-defining-the-routes) (Apprentice): A route pairs a path with the component to show for it. List them in app.routes.ts, the home page at the empty path and a page-not-found route with \*\* last, because the router uses the first route that matches. A route can also set the page's title or redirect an old address.
3. [Linking to Other Pages](https://www.ask-codey.com/lessons/basic-routing-in-angular-linking-to-other-pages) (Apprentice): A plain href makes the browser reload the whole app. routerLink lets the router change the page instead, routerLinkActive marks the link of the page you're on, and Router's navigate goes to another page from code, such as after saving.

Source: https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/basic-routing-in-angular
