Album

Learn the Blazor series together

Blazor's series of learning articles from basics to practical combat

31 篇文章
3 当前页
(11/30) Let's learn Blazor together: Arbitral attributes

(11/30) Let's learn Blazor together: Arbitral attributes

Currently, MyButton has 3 [Parameters]. If you add them, a new [Parameter] will have to be defined. In order to avoid constantly updating this Component, we use the '@attribute' provided by Blazor.

StrayaWorker 12/15/2021 10:53 PM
(9/30) Everyone learns Blazor together: Parameters

(9/30) Everyone learns Blazor together: Parameters

If we want to add a button to clear the data of the form, the fastest way is to add a button with the name "reset". At this time, two buttons will be used, and we can use Blazor's core concept: component encapsulation.

StrayaWorker 12/14/2021 10:18 PM
(7/30) Everyone learns Blazor together: Lifetime

(7/30) Everyone learns Blazor together: Lifetime

All services you create must be registered with Startup.cs (Blazor Server) or Program.cs (Blazor WebAssemlby), but you don't have to do some basic services yourself.

StrayaWorker 12/13/2021 9:38 PM