# Defining the Routes

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.

![Cheat sheet: Defining the Routes](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/71a3399e26c549649f248c35300f906c.webp)

- Category: Angular
- Level: Apprentice
- Tags: angular, Route (angular), Wildcard Route
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/basic-routing-in-angular-defining-the-routes-cheat-sheet
