Skip to content

Provide motivation for bind modifiers #28254

@guardrex

Description

@guardrex

Per @lonix1 on original issue #28245 ...

In this section it says:

For two-way data binding in ASP.NET Core 7.0 or later, we recommend using @Bind:get/@Bind:set modifiers. For more information, see the @Bind:get/@Bind:set in the opening section of this article.

But it doesn't say why? I assume that the new v7 syntax allows one to perform a "set" with an async method, which cannot be done using a regular c# (sync) property setter. That is useful, for e.g., when doing autocomplete. Maybe there are other reasons?

Cross-references:


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions