24 Routing and navigation: part 1

This chapter covers

  • Using the Angular routing system to select components based on the current URL
  • Defining and using routes
  • Using directives to enable navigation to different URLs
  • Inspecting the active route within components
  • Receiving events that describe route changes

The Angular routing feature allows applications to change the components and templates that are displayed to the user by responding to changes to the browser’s URL. This allows complex applications to be created that adapt the content they present openly and flexibly, with minimal coding. To support this feature, data bindings and services can be used to change the browser’s URL, allowing the user to navigate around the application.

Get Pro Angular 16 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.