diff --git a/aspnetcore/mvc/views/tag-helpers/built-in/component-tag-helper.md b/aspnetcore/mvc/views/tag-helpers/built-in/component-tag-helper.md
index 60d804bbca02..c4c3e232d3f1 100644
--- a/aspnetcore/mvc/views/tag-helpers/built-in/component-tag-helper.md
+++ b/aspnetcore/mvc/views/tag-helpers/built-in/component-tag-helper.md
@@ -125,7 +125,7 @@ The Component Tag Helper can also pass parameters to components. Consider the fo
public int Size { get; set; } = 8;
[Parameter]
- public string Color { get; set; }
+ public string? Color { get; set; }
protected override void OnInitialized()
{
@@ -184,7 +184,7 @@ The Component Tag Helper can also pass parameters to components. Consider the fo
public int Size { get; set; } = 8;
[Parameter]
- public string Color { get; set; }
+ public string? Color { get; set; }
protected override void OnInitialized()
{
@@ -255,13 +255,13 @@ public class MyClass
```razor
ParameterComponent
-Int: @MyObject.MyInt
-String: @MyObject.MyString
+Int: @MyObject?.MyInt
+String: @MyObject?.MyString
@code
{
[Parameter]
- public MyClass MyObject { get; set; }
+ public MyClass? MyObject { get; set; }
}
```
@@ -284,7 +284,7 @@ public class MyClass
param-MyObject="@myObject" />
```
-The preceding example assumes that the `ParameterComponent` component is in the app's `Components`` folder. The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `@using BlazorSample` and `@using BlazorSample.Components`). `MyClass` is in the app's namespace.
+The preceding example assumes that the `ParameterComponent` component is in the app's `Components` folder. The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `@using BlazorSample` and `@using BlazorSample.Components`). `MyClass` is in the app's namespace.
:::moniker-end
@@ -295,13 +295,13 @@ The preceding example assumes that the `ParameterComponent` component is in the
```razor
ParameterComponent
-Int: @MyObject.MyInt
-String: @MyObject.MyString
+Int: @MyObject?.MyInt
+String: @MyObject?.MyString
@code
{
[Parameter]
- public MyClass MyObject { get; set; }
+ public MyClass? MyObject { get; set; }
}
```
@@ -324,7 +324,7 @@ The preceding example assumes that the `ParameterComponent` component is in the
param-MyObject="@myObject" />
```
-The preceding example assumes that the `ParameterComponent` component is in the app's `Shared`` folder. The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `@using BlazorSample` and `@using BlazorSample.Shared`). `MyClass` is in the app's namespace.
+The preceding example assumes that the `ParameterComponent` component is in the app's `Shared` folder. The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `@using BlazorSample` and `@using BlazorSample.Shared`). `MyClass` is in the app's namespace.
:::moniker-end
@@ -332,6 +332,7 @@ The preceding example assumes that the `ParameterComponent` component is in the
:::moniker range=">= aspnetcore-8.0"
+*
*
*
*
@@ -339,8 +340,19 @@ The preceding example assumes that the `ParameterComponent` component is in the
:::moniker-end
-:::moniker range="< aspnetcore-8.0"
+:::moniker range=">= aspnetcore-6.0 < aspnetcore-8.0"
+
+*
+*
+*
+*
+*
+
+:::moniker-end
+
+:::moniker range="< aspnetcore-6.0"
+*
*
*
*
diff --git a/aspnetcore/mvc/views/tag-helpers/built-in/persist-component-state.md b/aspnetcore/mvc/views/tag-helpers/built-in/persist-component-state.md
index 3e44594739ad..88f45aa72358 100644
--- a/aspnetcore/mvc/views/tag-helpers/built-in/persist-component-state.md
+++ b/aspnetcore/mvc/views/tag-helpers/built-in/persist-component-state.md
@@ -79,6 +79,7 @@ For more information and examples, see
*
*
*
@@ -88,6 +89,8 @@ For more information and examples, see
+*
*
*
*