Skip to content

Commit 23283d8

Browse files
authored
Explain field used by example (#34151)
1 parent 7445076 commit 23283d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/blazor/components/virtualization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The items provider receives an <xref:Microsoft.AspNetCore.Components.Web.Virtual
9797

9898
A <xref:Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize%601> component can only accept **one item source** from its parameters, so don't attempt to simultaneously use an items provider and assign a collection to `Items`. If both are assigned, an <xref:System.InvalidOperationException> is thrown when the component's parameters are set at runtime.
9999

100-
The following example loads employees from an `EmployeeService` (not shown):
100+
The following example loads employees from an `EmployeeService` (not shown). The `totalEmployees` field would typically be assigned by calling a method on the same service (for example, `EmployeesService.GetEmployeesCountAsync`) elsewhere, such as during component initialization.
101101

102102
```csharp
103103
private async ValueTask<ItemsProviderResult<Employee>> LoadEmployees(

0 commit comments

Comments
 (0)