You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/javascript-interoperability/call-dotnet-from-javascript.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1169,14 +1169,14 @@ In the preceding example:
1169
1169
1170
1170
## Component instance .NET method helper class
1171
1171
1172
-
A helper class can invoke a .NET instance method as an <xref:System.Action>. Helper classes are useful in the following scenarios:
1172
+
A helper class can invoke a .NET instance method as an <xref:System.Action>. Helper classes are useful in scenarios where using static .NET methods aren't applicable:
1173
1173
1174
1174
* When several components of the same type are rendered on the same page.
1175
1175
* In server-side apps with multiple users concurrently using the same component.
1176
1176
1177
1177
In the following example:
1178
1178
1179
-
* The component contains several `ListItem1` components, which is a shared component in the app's `Shared` folder.
1179
+
* The component contains several `ListItem1` components.
1180
1180
* Each `ListItem1` component is composed of a message and a button.
1181
1181
* When a `ListItem1` component button is selected, that `ListItem1`'s `UpdateMessage` method changes the list item text and hides the button.
1182
1182
@@ -1345,7 +1345,7 @@ The assignment of a <xref:Microsoft.JSInterop.DotNetObjectReference> to a proper
1345
1345
* In the component's [`OnAfterRender{Async}` method](xref:blazor/components/lifecycle#after-component-render-onafterrenderasync), a JavaScript (JS) function is invoked with the element reference and the component instance as a <xref:Microsoft.JSInterop.DotNetObjectReference>. The JS function attaches the <xref:Microsoft.JSInterop.DotNetObjectReference> to the element in a property.
1346
1346
* When an element event is invoked in JS (for example, `onclick`), the element's attached <xref:Microsoft.JSInterop.DotNetObjectReference> is used to call a .NET method.
1347
1347
1348
-
Similar to the approach described in the [Component instance .NET method helper class](#component-instance-net-method-helper-class) section, this approach is useful in the following scenarios:
1348
+
Similar to the approach described in the [Component instance .NET method helper class](#component-instance-net-method-helper-class) section, this approach is useful in scenarios where using static .NET methods aren't applicable:
1349
1349
1350
1350
* When several components of the same type are rendered on the same page.
1351
1351
* In server-side apps with multiple users concurrently using the same component.
0 commit comments