Skip to content

Commit 44c30ab

Browse files
committed
Updates
1 parent e94c06a commit 44c30ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ window.testObject = {
524524
Use `GetValueAsync<TValue>(string identifier)` to read the value of the specified JS property asynchronously. A <xref:Microsoft.JSInterop.JSException> is thrown if the property doesn't exist or is a `set`-only property.
525525

526526
```csharp
527-
var valueFromDataPropertyAsync = await JSRuntime.GetValueAsync<int>("testObject.num");
527+
var valueFromDataPropertyAsync =
528+
await JSRuntime.GetValueAsync<int>("testObject.num");
528529
```
529530

530531
Use `SetValueAsync<TValue>(string identifier, TValue value)` to update the value of the specified JS property asynchronously. If the property isn't defined on the target object, the property is created. A <xref:Microsoft.JSInterop.JSException> is thrown if the property exists but isn't writable or when a new property can't be added to the object.

0 commit comments

Comments
 (0)