Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,667 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
@page "/"
<input @bind="someThing" />
<input @bind-value="someThing" />
<input value="someThing" />
@code
{
string someThing;
}
the @bind is used for 2 way binding. to know which property to bind to, you include the -<name>. @bind-Value will bind to the Value property. in the case of input, Value is the default, you you can shorten to @bind
if a property is set without a @bind, it is one way (set only)
(extra post to display)