We have to update data to the Model in an action (like save). Our idea: Do not want to make server call often for every time the "focus looses" from the HTML element. Finally we want to update the value while Submit.
<div>
<label>Name</label>
<input type="text" value="@student.Name" />
<br />
<label>Age</label>
<input type="text" value="@student.Age" />
<br />
<input type="submit" @onclick="Save" />
</div>
@code {
Student student = new Student();
private void Save()
{
// At this stage - the value should be updated to the model.
}
}