Skip to content
You are not logged in |Login  
     
Limit search to available items
Record:   Prev Next
Resources
More Information
Bestseller
BestsellerE-book
Author Wright, Toi B., author.

Title Blazor WebAssembly by example : a project-based guide to building web apps with .NET, Blazor WebAssembly, and C# / Toi Beveridge Wright.

Publication Info. Birmingham : Packt Publishing, 2021.

Item Status

Description 1 online resource
Contents Cover -- Title Page -- Copyright and Credits -- Contributors -- Table of Contents -- Preface -- Chapter 1: Introduction to Blazor WebAssembly -- Benefits of using the Blazor framework -- .NET Framework -- SPA framework -- Razor syntax -- Awesome tooling -- Hosting models -- Blazor Server -- Blazor WebAssembly -- What is WebAssembly? -- WebAssembly goals -- WebAssembly support -- Setting up your PC -- Installing Visual Studio Community Edition -- Installing .NET 5.0 -- Installing SQL Server Express -- Summary -- Questions -- Further reading
Chapter 2: Building Your First Blazor WebAssembly Application -- Technical requirements -- Razor components -- Using components -- Parameters -- Naming components -- Component life cycle -- Component structure -- Routing in Blazor WebAssembly -- Route parameters -- Catch-all route parameters -- Route constraints -- Razor syntax -- Inline expressions -- Control structures -- Project overview -- Creating the Demo Blazor WebAssembly project -- Creating the Demo project -- Running the Demo project -- Examining the Demo project's structure -- Examining the shared Razor components
Examining the routable Razor components -- Using 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 -- Creating a custom Blazor WebAssembly project template -- Creating an empty Blazor project -- Creating a project template -- Updating a custom project template -- Using a custom project template -- Summary -- Questions -- Further reading -- Chapter 3: Building a Modal Dialog Using Templated Components -- Technical requirements -- RenderFragment parameters
EventCallback parameters -- CSS isolation -- Enabling CSS isolation -- Supporting child components -- Project overview -- Creating the modal dialog project -- Getting started with the project -- Adding the Dialog component -- Adding a CSS -- Testing the Dialog component -- Adding EventCallback parameters -- Adding RenderFragment parameters -- Creating a Razor class library -- Testing the Razor class library -- Adding a component to the Razor class library -- Summary -- Questions -- Further reading -- Chapter 4: Building a Local Storage Service Using JavaScript Interoperability (JS Interop)
Technical requirements -- Why use JavaScript? -- Exploring JS interop -- InvokeVoidAsync -- InvokeAsync -- Invoking JavaScript from .NET synchronously -- Invoking .NET from JavaScript -- Understanding local storage -- Project overview -- Creating the local storage service -- Creating the local storage service project -- Writing JavaScript to access localStorage -- Adding the ILocalStorageService interface -- Creating the LocalStorageService class -- Writing to localStorage -- Reading from localStorage -- Summary -- Questions -- Further reading
Summary Discover blueprints that explore various components of Blazor, C#, and .NET to help you build web apps without learning JavaScript Key Features Explore complete, easy-to-follow web projects using Blazor Build projects such as a weather app, expense tracker, and Kanban board with real-world applications Understand and work with Blazor WebAssembly effectively without spending too much time focusing on the theory Book DescriptionBlazor WebAssembly makes it possible to run C# code on the browser instead of having to use JavaScript, and does not rely on plugins or add-ons. The only technical requirement for using Blazor WebAssembly is a browser that supports WebAssembly, which, as of today, all modern browsers do. Blazor WebAssembly by Example is a project-based guide for learning how to build single-page web applications using the Blazor WebAssembly framework. This book emphasizes the practical over the theoretical by providing detailed step-by-step instructions for each project. You'll start by building simple standalone web applications and progress to developing more advanced hosted web applications with SQL Server backends. Each project covers a different aspect of the Blazor WebAssembly ecosystem, such as Razor components, JavaScript interop, event handling, application state, and dependency injection. The book is designed in such a way that you can complete the projects in any order. By the end of this book, you will have experience building a wide variety of single-page web applications with .NET, Blazor WebAssembly, and C#. What you will learn Discover the power of the C# language for both server-side and client-side web development Use the Blazor WebAssembly App project template to build your first Blazor WebAssembly application Use templated components and the Razor class library to build and share a modal dialog box Understand how to use JavaScript with Blazor WebAssembly Build a progressive web app (PWA) to enable native app-like performance and speed Understand dependency injection (DI) in .NET to build a shopping cart app Get to grips with .NET Web APIs by building a task manager app Who this book is for This book is for .NET web developers who are tired of constantly learning new JavaScript frameworks and wish to write web applications using Blazor WebAssembly, leveraging the power of .NET and C#. The book assumes beginner-level knowledge of the C# language, .NET framework, Microsoft Visual Studio, and web development concepts.
Local Note eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America
Subject Web applications.
Application software.
Application software
Web applications
Added Author Hanselman, Scott, author.
Other Form: Print version: 9781800567511
ISBN 1800563930
9781800563933 (electronic bk.)
9781800567511 (pbk.)