Blazor WebAssembly by example : use practical projects to start building web apps with .NET 7, Blazor WebAssembly, and C# /
Blazor WebAssembly helps developers build web applications without the need for JavaScript, plugins, or add-ons. With its continued growth in popularity, getting started with Blazor now can open doors to new career paths and exciting projects – and Blazor WebAssembly by Example will make your first...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing Ltd.,
2023.
|
Edición: | Second edition. |
Colección: | Expert insight.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover
- Copyright
- Foreword
- Contributors
- Table of Contents
- Preface
- Chapter 1: Introduction to Blazor WebAssembly
- Benefits of using the Blazor framework
- .NET Framework
- Open source
- SPA framework
- Razor syntax
- Awesome tooling
- Supported by Microsoft
- Hosting models
- Blazor Server
- Advantages of Blazor Server
- Disadvantages of Blazor Server
- Blazor Hybrid
- Advantages of Blazor Hybrid
- Disadvantages of Blazor Hybrid
- Blazor WebAssembly
- Advantages of Blazor WebAssembly
- Disadvantages of Blazor WebAssembly
- Hosting model differences
- What is WebAssembly?
- WebAssembly goals
- WebAssembly support
- Setting up your PC
- Installing Microsoft Visual Studio Community Edition
- Installing .NET 7.0
- Installing Microsoft SQL Server Express
- Create a Microsoft Azure account
- Summary
- Questions
- Further reading
- Chapter 2: Building Your First Blazor WebAssembly Application
- Creating the Demo Blazor WebAssembly Project Technical Requirements
- Razor components
- Using components
- Parameters
- Required parameters
- Query strings
- Naming components
- Component life cycle
- Component structure
- Directives
- Markup
- Code block
- Routing
- Route parameters
- Optional route parameters
- Catch-all route parameters
- Route constraints
- Razor syntax
- Inline expressions
- Control structures
- Conditionals
- Loops
- Hot Reload
- Creating the Demo Blazor WebAssembly project
- Project overview
- Getting started with the project
- Running the Demo project
- Examining the Demo project's structure
- The Properties folder
- The wwwroot folder
- The App component
- The Shared folder
- The Pages folder
- The Client folder
- The _Imports.razor file
- Examining the shared Razor components
- The MainLayout component
- The NavMenu component
- The SurveyPrompt component
- Examining the routable Razor components
- The Index component
- The Counter component
- The FetchData component
- Using a component
- Modifying a component
- Adding a parameter to a component
- Using a parameter with an attribute
- Adding a route parameter
- Using partial classes to separate markup from code
- Summary
- Questions
- Further reading
- Chapter 3: Debugging and Deploying a Blazor WebAssembly App
- Technical requirements
- Debugging a Blazor WebAssembly.app
- Debugging in Visual Studio
- Debugging in the browser
- Understanding logging
- Understanding log levels
- Setting the minimum log level
- Handling exceptions
- Setting error boundaries
- Creating a custom error component
- Using ahead-of-time (AOT) compilation
- Deploying a Blazor WebAssembly app to Microsoft Azure
- Creating the "guess the number" project
- Project overview
- Getting started with the project
- Adding a Game component
- Adding the code
- Adding a style sheet
- Setting up and playing the game
- Adding logging
- Debugging in Visual Studio
- Updating the code
- Debugging in the browser