4 Routing

This chapter covers

  • Distinguishing traditional routing from client-side routing
  • Defining page components
  • Triggering navigation programmatically
  • Passing data via the URL
  • Working with query strings

Routing, or navigation, is a fundamental concept when building web applications. Traditionally, moving from one page to another was a case of loading an entirely new, physical HTML page from the server. In more modern server-based frameworks such as MVC or Razor Pages, those pages are dynamically compiled on the server before being sent to the client, but the process is still the same. However, in single-page applications, things work a little differently.

As always, to help you learn about the concepts we’re going to uncover in this chapter, ...

Get Blazor in Action 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.