Router outlets

Last updated

What is Router outlets?

The router-outlet is a directive that's available from the @angular/router package and is used by the router to mark where in a template, a matched component should be inserted.

Thanks to the router outlet, your app will have multiple views/pages and the app template acts like a shell of your application. Any element, you add to the shell will be rendered in each view, only the part marked by the router outlet will be changed between views.

Free resources to learn Router outlets

More in stage 10: Services & Remote Data

Router outlets: common questions

Can I learn Router outlets in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Router outlets in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Router outlets tutorial for beginners?

It is lesson 65 of 158 in the free Angular roadmap, in stage 10, Services & Remote Data. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me