Video description
In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.
The right place to start your journey with Blazor.
Kalyan Chanumolu, Microsoft
An example-driven guide to building reusable UI components and web frontends—all with Blazor, C#, and .NET.
In Blazor in Action, you will learn about:
- Blazor + WebAssembly
- Picking the right hosting model
- Building reusable UI components
- Building forms with validation
- Integrating with JavaScript libraries
- Securing your application
- Testing your applications
Blazor in Action is a practical guide to building stunning UIs and client-side applications using C# and .NET. You’ll use the Blazor frontend framework to create a fun and exciting web application for plotting hiking routes. As you build up your new application, you’ll master the key features of Blazor, such as routing, forms and validation, and dynamic and reusable components. By the time you're done, you'll be ready to develop beautiful sites and apps that seamlessly execute your C# code natively in the browser.
The book is written to the most recent stable build of Blazor and seamlessly integrates fresh features from .NET 6.
about the technology
Create rich web frontends without relying on JavaScript. Microsoft’s Blazor framework uses WebAssembly to extend the ultra-popular ASP.NET platform. In Blazor, you can build interactive web components that run natively in the browser without plug-ins or transpilers. And because it’s C# end-to-end, it’s easy to share code between the server and your web UI.
about the book
Blazor in Action teaches you to create full-stack ASP.NET applications end-to-end in C#. You’ll start by learning to build Blazor web components, working through core topics like routing and forms. As you go, you’ll implement a hiking route web application that includes reusable code, integration with JavaScript libraries, and role-based security. To make sure your app is production ready, this practical book also covers state management, data persistence, and testing.
about the audience
For web developers with C# and .NET experience.
about the author
Chris Sainty has been a part of the Blazor community from the beginning. He’s an active blogger, open source developer, international speaker, and a Microsoft MVP.
An excellent introduction and reference for Blazor development.
Jeff Smith, TJX
Guides the user through the practical use of Blazor components and the concepts behind them. Fantastic book!
Jim Wilson, Open Applications Group
A very well-conceived and well-executed introduction to Blazor and its use in full-stack development.
Mark Chalkley, MainStreetCities
NARRATED BY CHRISTOPHER KENDRICK
Table of Contents
Chapter 1. Starting your Blazor journey
Chapter 1. Components, a better way to build UI
Chapter 1. Blazor, a platform for building modern UIs with C#
Chapter 1. Blazor WebAssembly
Chapter 1. Blazor Server Part 1
Chapter 1. Blazor Server Part 2
Chapter 2. Your first Blazor app
Chapter 2. Building and running the application
Chapter 2. Program.cs
Chapter 2. Writing your first components
Chapter 2. Defining the layout
Chapter 2. The Blazing Trails home page
Chapter 3. Working with Blazor’s component model
Chapter 3. Component life cycle methods
Chapter 3. Working with parent and child components
Chapter 3. Styling components
Chapter 3. Using CSS preprocessors Part 1
Chapter 3. Using CSS preprocessors Part 2
Chapter 4. Routing
Chapter 4. Navigating between pages programmatically
Chapter 4. Handling multiple routes with a single component
Chapter 4. Setting query-string values
Chapter 5. Forms and validation—Part 1: Fundamentals
Chapter 5. Collecting data with input components
Chapter 5. Validating the model
Chapter 5. Configuring Blazor to use Fluent Validation
Chapter 5. Submitting data to the server
Chapter 5. Creating a request and handler to post the form data to the API
Chapter 6. Forms and validation—Part 2: Beyond the basics
Chapter 6. Building custom input components with InputBase
Chapter 6. Working with files
Chapter 6. Updating the form to allow editing
Chapter 6. Adding the edit trail feature Part 1
Chapter 6. Adding the edit trail feature Part 2
Chapter 7. Creating more reusable components
Chapter 7. Sharing components with Razor class libraries
Chapter 8. Integrating with JavaScript libraries
Chapter 8. Testing out the RouteMap component
Chapter 8. Integrating the RouteMap component with the TrailForm Part 1
Chapter 8. Integrating the RouteMap component with the TrailForm Part 2
Chapter 9. Securing Blazor applications
Chapter 9. Customizing tokens from Auth0
Chapter 9. Displaying different UI fragments based on authentication status
Chapter 9. Prevent unauthorized users accessing a page
Chapter 9. Authorizing users by role
Chapter 9. Implementing role-based logic
Chapter 10. Managing state
Chapter 10. Improving the AppState design to handle more state
Chapter 10. Adding and removing trails from thefavorites list
Chapter 11. Testing your Blazor application
Chapter 11. Adding a bUnit test project
Chapter 11. Testing rendered markup
Chapter 11. Faking authentication and authorization
Chapter 11. Emulating JavaScript interactions