The Angular router maps URLs to components, handles navigation without reloads and the history. Routes are declared in an array, with paths, parameters such as :id and child routes. <router-outlet> displays the active component and routerLink creates navigation links.
Example
const routes: Routes = [
{ path: 'taches/:id', component: TacheComponent }
];