Skip to content

Commit 4034784

Browse files
guardrexCopilot
andauthored
Update aspnetcore/blazor/components/cascading-values-and-parameters.md
Co-authored-by: Copilot <[email protected]>
1 parent 4c8a60e commit 4034784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/blazor/components/cascading-values-and-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ For more information, see the following sections of this article:
433433

434434
To make use of cascading values, descendent components declare cascading parameters using the [`[CascadingParameter]` attribute](xref:Microsoft.AspNetCore.Components.CascadingParameterAttribute). Cascading values are bound to cascading parameters **by type**. Cascading multiple values of the same type is covered in the [Cascade multiple values](#cascade-multiple-values) section later in this article.
435435

436-
The `private` access modifier is recommended for components because the parameter should be scoped for use only in the component's class in most cases. When subclassing is required, use the `protected` access modifier.
436+
The `private` access modifier is recommended for cascading parameters because the parameter should be scoped for use only within the component's class in most cases. When subclassing is required, use the `protected` access modifier.
437437

438438
The following component binds the `ThemeInfo` cascading value to a cascading parameter, optionally using the same name of `ThemeInfo`. The parameter is used to set the CSS class for the **`Increment Counter (Themed)`** button.
439439

0 commit comments

Comments
 (0)