34 Using Blazor Server, part 2

This chapter covers

  • Composing elements to combine Blazor components
  • Configuring components using attributes
  • Displaying child content and creating templates
  • Managing connection errors and application errors

In this chapter, I continue to describe Blazor Server, focusing on the way that Razor Components can be used together to create more complex features. Table 34.1 provides a guide to the chapter.

Table 34.1 Chapter guide

Problem

Solution

Listing

Creating complex features using Blazor

Combine components to reduce duplication.

3, 4

Configuring a component

Use the Parameter attribute to receive a value from an attribute.

5–10

Defining custom events and bindings

Use EventCallbacks ...

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.