Building Single Page Applications in Net Core 3 Jumpstart Coding Using Blazor and C 1st Edition Michele Aponte PDF Download
Building Single Page Applications in Net Core 3 Jumpstart Coding Using Blazor and C 1st Edition Michele Aponte PDF Download
https://ebookbell.com/product/building-single-page-applications-
in-net-core-3-jumpstart-coding-using-blazor-and-c-1st-edition-
michele-aponte-50195824
https://ebookbell.com/product/building-single-page-applications-in-
net-core-3-jumpstart-coding-using-blazor-and-c-1st-edition-michele-
aponte-51086148
https://ebookbell.com/product/java-ee-8-and-angular-a-practical-guide-
to-building-modern-singlepage-applications-with-angular-and-java-ee-
prashant-padmanabhan-23272324
https://ebookbell.com/product/java-ee-8-and-angular-a-practical-guide-
to-building-modern-singlepage-applications-with-angular-and-java-ee-
padmanabhan-55591820
Building Spas With Django And Html Over The Wire Learn To Build
Realtime Single Page Applications With Python 1st Edition Andros
Fenollosa
https://ebookbell.com/product/building-spas-with-django-and-html-over-
the-wire-learn-to-build-realtime-single-page-applications-with-
python-1st-edition-andros-fenollosa-44868684
Building Web Applications With Vuejs Mvvm Patterns For Conventional
And Singlepage Websites Ralph Steyer
https://ebookbell.com/product/building-web-applications-with-vuejs-
mvvm-patterns-for-conventional-and-singlepage-websites-ralph-
steyer-44898498
https://ebookbell.com/product/building-singlepage-web-apps-with-
meteor-fabian-vogelsteller-5034984
Building A Web App With Blazor And Aspnet Core Create A Single Page
App With Blazor Server And Entity Framework Jignesh Trivedi
https://ebookbell.com/product/building-a-web-app-with-blazor-and-
aspnet-core-create-a-single-page-app-with-blazor-server-and-entity-
framework-jignesh-trivedi-44888856
https://ebookbell.com/product/design-to-manufacture-of-complex-
building-envelopes-single-layer-envelopes-mulliontransom-
systems-3d-printed-metal-nodes-1st-ed-alamir-mohsen-11858102
Mgtow Building Wealth And Power For Single Men Only Tim Patten
https://ebookbell.com/product/mgtow-building-wealth-and-power-for-
single-men-only-tim-patten-35127344
Building Single
Page Applications
in .NET Core 3
Jumpstart Coding Using
Blazor and C#
—
Michele Aponte
www.allitebooks.com
Building Single Page
Applications in
.NET Core 3
Jumpstart Coding Using
Blazor and C#
Michele Aponte
www.allitebooks.com
Building Single Page Applications in .NET Core 3: Jumpstart Coding
Using Blazor and C#
Michele Aponte
Torre del Greco (NA), Italy
www.allitebooks.com
To my son, Francesco Paolo: I hope that one day you will
read this book and be as proud of me as I am of you,
especially every time you smile when you catch my eye.
www.allitebooks.com
Table of Contents
About the Author��������������������������������������������������������������������������������vii
Acknowledgments�������������������������������������������������������������������������������ix
Introduction�����������������������������������������������������������������������������������������xi
www.allitebooks.com
Table of Contents
Index�������������������������������������������������������������������������������������������������101
vi
About the Author
Michele Aponte is a programmer who has worked with Java, .NET, and
JavaScript at software and IT consulting companies in his native Italy
since 1993. Combining his training, consulting, and development skills,
in 2013 Michele founded Blexin to help customers migrate older software
and systems to new technologies to improve their businesses. Passionate
about programming, Michele embraces sharing with the community.
He founded DotNetCampania, a Microsoft User Group in 2008, and
has organized many regional conferences. He is also the founder of
Blazor Developer Italiani, the Italian developer group about the Blazor
framework. Recognized as a Microsoft MVP, he often presents on Microsoft
and JavaScript topics at tech conferences throughout Italy.
vii
Acknowledgments
Writing a book is hard work that requires a lot of time and inevitably
involves the lives of those closest to the author. I want to thank my life
partner, Raffaella, for her support for this project and her patience with me.
I also want to thank my old friend, whose name is Raffaella as well, for the
help she gave me in revising my English.
A special thanks also goes to all the employees of Blexin, my company,
who are the best team one could have and with whom I can experiment
every day with the technologies described in this book.
Finally, many thanks to the fantastic Apress team that supported me
during this project.
ix
Introduction
Blazor has garnered a great deal of enthusiasm since its initial release. I’ve
followed the framework from the beginning, and when teaching any new
technology, I use a practical approach. This book looks at the needs of real
applications and answers all the questions you might have when learning
how to use Blazor.
Specifically, in Chapter 1, I focus on the success of this framework and
how it solves one of the problems most felt by Microsoft programmers:
using JavaScript. Blazor allows you to use .NET directly in the browser,
using open standards so as not to repeat the mistakes of the past. In my
opinion, however, it is important to understand how Blazor works beyond
the tools made available by the development environment, so I focus on
the code in this book. I start with a simple example, without using the
templates made available by Microsoft, to highlight how it works.
In Chapter 2, you will find a detailed comparison between the
two versions of Blazor for web development: Blazor Server and Blazor
WebAssembly. Using the example from the first chapter, I compare the
two versions by highlighting what is going on behind the scenes and how
WebAssembly is revolutionizing the world of front-end development. I
explain how to choose a version based your requirements because they
both have pros and cons and must be contextualized in your environment/
situation.
In Chapter 3, I cover all the concepts necessary to create a single-page
application, starting from scratch and tackling some issues concerning
the decomposition of the interface into components. In this chapter, you
will learn how to create pages and navigate between them, you will see
how to create forms for data entry, and you will learn how to integrate the
xi
Introduction
front end with the back-end, differentiating the approach between the
two versions of the framework but standardizing their use thanks to the
dependency injection of ASP.NET Core. Here you will discover that the
framework allows you to invoke JavaScript functions from .NET and to
invoke .NET methods from JavaScript functions.
In Chapter 4, I explain how to create libraries of reusable components,
addressing how to generalize components thanks to the framework’s
ability to use .NET Generics and content projection. What may seem
like more advanced aspects are actually necessary to avoid reinventing
the wheel on each page of your application; this also allows you to start
creating your own Blazor component library.
In Chapter 5, I cover application deployment, using both versions of
the framework. It’s important to know where your application will run,
since scalability problems must be addressed and will impact how you
write the application.
You can find the code for the first two chapters of the book in the
countdown and countdown-wasm folders of the code download; you can use
the two versions to see the differences between Blazor Server and Blazor
WebAssembly within the same small application. The code for the third
and fourth chapters, where you learn to create a small article manager, is
available for both versions of the framework in eight pieces that follow the
flow of the chapters.
• JavaScript interoperability
xii
Introduction
• Blazor Library
You can copy and execute the code that accompanies the book, but
I suggest you write it from scratch by following the instructions in the
chapters. That’s the best way to learn Blazor!
xiii
Random documents with unrelated
content Scribd suggests to you:
back
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.
ebookbell.com