✅ Two-way binding class object Blazor Server
I seem to lack understanding of how to two-way bind a class to a child component that's updating some of the properties of the class.
Clicking the
I'm guessing this is exepcted behaviour since the object reference doesn't change?
Is there a way to get this working when only exposing a
What would be the appropriate way to do this?
Clicking the
Update button will make the value change because StateHasChanged(), but this also makes the all the initialization methods run as well which in my real example is getting some data from a database and would be unnecessary to repeat.I'm guessing this is exepcted behaviour since the object reference doesn't change?
Is there a way to get this working when only exposing a
@bind-Value from the child component?What would be the appropriate way to do this?