Angular

Last Updated: 9/8/2023

Router Outlet

  • Router outlet is where the angular router is going to display the component associated with the current route
  • <router-outlet> is a directive defined in router module
  • When angular sees the router-outlet, angular render the component associated with the current route after this router-outlet not inside
  • In app.component.html, add
<router-outlet></router-outlet>