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 16.1 – Test your knowledge
Answer the following questions:
- What are the three Blazor hosting models?
- 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 issue? - What must you do to a property in a component class to have it set to a query...