Blazor WebAssembly by Example: A project-based guide to building web apps with .NET,Blazor WebAssembly,and C#
by Scott Hanselman,Toi B. Wright
Print Length 页数: 266 pages
Edition 版本: 1
Language 语言: English
Publisher finelybook 出版社: Packt Publishing
Released: 2021-07-09
ISBN-10: 1800567510
ISBN-13: 9781800567511
Book Description
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 Description
Blazor 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.
Table of Contents
Introduction to Blazor WebAssembly
Building Your First Blazor WebAssembly Application
Building a Modal Dialog Using Templated Components
Building a Local Storage Service Using JavaScript Interoperability (JS Interop)
Building a Weather App as a Progressive Web App (PWA)
Building a Shopping Cart Using Application State
Building a Kanban Board Using Events
Building a Task Manager Using ASP.NET Web API
Building an Expense Tracker Using the EditForm Component