Blazor wasm: Reference Javascript function with IJSObjectReference #38517
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-jsinterop
This issue is related to JSInterop in Blazor
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Describe the bug
When I'm trying to reference a javascript function in JS I'm getting this error.
To Reproduce
In a
.js
file putThen
Further technical details
Use case:
What I'm trying to achieve is to call a JS function from .NET and give it a callback to a .NET method.
Something like:
The text was updated successfully, but these errors were encountered: