Created
May 8, 2020 23:23
-
-
Save gavilanch/553ceb027637b7a374c03bbd03c21c79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button @ref="miBoton" id="counterClick" class="btn btn-primary counterClickC" @onclick="IncrementCount">Click me</button> | |
@code { | |
private ElementReference miBoton; | |
protected async override Task OnAfterRenderAsync(bool firstRender) | |
{ | |
if (firstRender) | |
{ | |
await js.InvokeVoidAsync("initializeCounterComponent", miBoton); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment