Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Different method calls in Blazor

$
0
0

I am experimenting with Blazor for some time now and I am trying to find an explanation about the difference between

<input type="button" onclick="@methodCall()">Something</button>

and

<input type="button" @onclick="() => methodCall()">Something</button>

Why is @ expected before onclick vs @ being part of value?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>