In Frank Liu’s IMS course, the focus is on Blazor Server with .NET 8.
Razor Components (.razor
)
The building blocks of Blazor apps.
Combine C# + HTML in a single file.
Example:
<h3>@Title</h3>
<button @onclick="Increment">Click Me</button>
@code {
private string Title = "Counter Example";
private int count = 0;
private void Increment() => count++;
}
Data Binding
@variable
bind-Value="@variable"
Event Handling
@onclick
, @oninput
, @onsubmit
.Routing
@page "/route"
.NavLink
for navigation.Layouts
.razor
components.CartService
) and inject it across components.