Working Blazor app

* New Blazor Project created

* gitignore added

* Removed unneeded files
This commit is contained in:
zha19115 2023-01-17 16:39:03 +01:00 committed by FUH22860
parent 42281147cd
commit 2581c2842f
2 changed files with 18 additions and 1 deletions

18
Pages/Counter.razor Normal file
View File

@ -0,0 +1,18 @@
@page "/counter"
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}

View File

@ -5,7 +5,6 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>