Initial commit

This commit is contained in:
Jimmy Engström 2023-02-17 15:28:17 +01:00
parent 2190113c56
commit 3088165398
1765 changed files with 192085 additions and 0 deletions

View file

@ -0,0 +1,17 @@
@page "/nettojswasm"
@using System.Runtime.InteropServices.JavaScript
<h3>This is a demo how to call JavaScript from .NET</h3>
<button @onclick="ShowAlert">Show Alert</button>
@code {
protected async void ShowAlert()
{
ShowAlert("Hello from .NET");
}
protected override async Task OnInitializedAsync()
{
await JSHost.ImportAsync("nettojs", "../JSInteropSamples/NetToJS.razor.js");
}
}