Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created March 27, 2018 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/8a6adaad026f8af3c9ab5a8e20c456a4 to your computer and use it in GitHub Desktop.
Save vmussak/8a6adaad026f8af3c9ab5a8e20c456a4 to your computer and use it in GitHub Desktop.
Exemplo de uma página Blazor
@page "/counter"
<h1>Counter</h1>
<p>Current count: @currentCount</p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
currentCount++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment