From 0c782486718272e1055faab7cf8ed27c097f79aa Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:02:19 -0600 Subject: [PATCH 1/2] Enhance remark on motivation for bind:get/set --- aspnetcore/blazor/components/data-binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/components/data-binding.md b/aspnetcore/blazor/components/data-binding.md index 58422126c0a4..8c3239f907ed 100644 --- a/aspnetcore/blazor/components/data-binding.md +++ b/aspnetcore/blazor/components/data-binding.md @@ -236,7 +236,7 @@ Using `@bind:get`/`@bind:set` modifiers both controls the underlying value of `i :::code language="razor" source="~/../blazor-samples/7.0/BlazorSample_WebAssembly/Pages/data-binding/DecimalBinding.razor" highlight="7,21-31"::: > [!NOTE] -> 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. +> Binding to a property with `get`/`set` accessors requires discarding the returned by . 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` guidance in the opening section of this article. ## Multiple option selection with `` elements