Router Outlet

noun

say it: “ROW-ter OWT-let” /ˈraʊtər ˈaʊtlɛt/

The placeholder in a template where the router shows the current route's component.

What is Router Outlet?

<router-outlet /> is the placeholder where the router displays the component for the current URL. Headers and footers go around it.

<app-header />
<router-outlet />
<app-footer />

In a sentence

  • “Each page appears inside the router-outlet under the header.”

Level: Apprentice · More Angular terms at this level

Updated