Table of Contents
Preface
Part 1: Blazor WebAssembly Essentials
1
Understanding the Anatomy of a Blazor WebAssembly Project
Technical requirements
Creating your first Blazor WebAssembly project
Using the .NET CLI
Using Visual Studio 2022
Discovering the project structure
The wwwroot folder
The Pages folder
The Shared folder
The _Imports.razor file
The App.razor file
The Program.cs file
Dependency injection in Blazor WebAssembly
How dependency injection works
Using dependency injection in Blazor WebAssembly
Creating, storing, and retrieving the app configurations
Managing application environments
Creating a configuration file based on the environment
Reading the environment within the components
Summary
Further reading
2
Components in Blazor ...
Get Mastering Blazor WebAssembly 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.