Basic Angular 17 routing example | 2024

Опубликовано: 28 Февраль 2026
на канале: software cantrips
909
7

In this tutorial I will show you how to use the router-outlet in Angular 17.
We will retrieve information from the route and add a child route.
Additionally we use the router to start a navigation inside a component.

Github Repository:
https://github.com/softwareCantrips/s...

Timecodes
0:00 - Setup
0:28 - Simple route
1:26 - Redirect
1:40 - Route data
2:17 - Link to route
1:27 - setup.jest.ts
1:37 - sum function
1:44 - install jest
1:52 - example test
2:57 - Routes with placeholder
4:48 - Child routes
5:28 - Navigate from component