Put in order · Angular course · Module 4: Routing

Full route discovery path (from file to view)

Order the stages of how routing works - from configuration to displaying the component:

Items to put in order

  • The router matches the path and renders the component in <router-outlet>
  • We register the router via provideRouter(routes)
  • We define the Routes array (path + component)
  • The user clicks a routerLink or types a URL

You can check the correct answer by solving this task in the CodeWorlds game.