The RouterOutlet is one of the router directives that became available to the AppComponent because AppModule imports AppRoutingModule which exported RouterModule. It tells the html where to display the routed html.
<router-outlet></router-outlet>
Create a link
<nav>
<a routerLink="/heroes">Heroes</a>
</nav>
Create a parameterized link
<routerLink="/detail/{{hero.id}}">
Routes
import {RouterModule, Routes } from '@angular/router';
import { HeroesComponent } from './heroes/heroes.component';