Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring this chapter’s topics with deeper research.
Exercise 15.1 – Test your knowledge
Answer the following questions:
- What is the benefit of the new Blazor Full Stack hosting model in .NET 8 compared to the legacy hosting models like Blazor Server?
- Does Blazor WebAssembly support all features of the latest .NET APIs?
- What is the file extension for Blazor components?
- How do you set the default layout for all Blazor page components?
- How do you register a route for a Blazor page component?
- When would you set the
Match
property of a<NavLink>
component toNavLinkMatch.All
? - You have imported a custom namespace in the
_Imports.razor
file, but when you try to use a class in that namespace in a code-behind file for the Blazor component, the class is not found. Why? How can you fix the...