creation des projets blazor pour le GUI
All checks were successful
Merging on main / Build & Test (push) Successful in 1m8s
All checks were successful
Merging on main / Build & Test (push) Successful in 1m8s
This commit was merged in pull request #37.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
@page "/counter"
|
||||
@rendermode InteractiveAuto
|
||||
|
||||
<PageTitle>Counter</PageTitle>
|
||||
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p role="status">Current count: @currentCount</p>
|
||||
|
||||
<p> le rendu est en : @(RendererInfo.Name) - @(RendererInfo.IsInteractive ? "Interactive" : "Static")</p>
|
||||
|
||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
private int currentCount = 0;
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user