35 Advanced Blazor features

This chapter covers

  • Creating routes that map requests to Blazor components
  • Navigating between components and receiving route data in a component
  • Using a layout with a routed component
  • Implementing the component lifecycle methods
  • Managing interaction between components and with JavaScript code

In this chapter, I explain how Blazor supports URL routing so that multiple components can be displayed through a single request. I show you how to set up the routing system, how to define routes, and how to create common content in a layout.

This chapter also covers the component lifecycle, which allows components to participate actively in the Blazor environment, which is especially important once you start using the URL routing ...

Get Pro ASP.NET Core 7, Tenth Edition 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.