Blazor Binding Convention Property or member

J.P. Bachmann 1 Reputation point
2021-07-27T08:47:18.873+00:00

Hey,

I am currently working within a Blazor project for my client and we struggled to find a clear docu that shows MS convention on namings for Blazor bindings.
What is the proposed standard for binding values in Blazor views? Is it recommanded to bind to properties or fields because the documentation is all over the place:
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-5.0

sometimes properties are bound and sometimes fields are

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,580 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.