-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Description
I tried but it never returns. Any of this call will work once then it just stops working.
protected override async Task OnInitAsync()
{
await JS.InvokeAsync<object>("alert", "Hello World");
await JS.InvokeAsync<object>("console.log", "hello world console");
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 93f4eeb7-4bf9-2631-3814-52bd4608445b
- Version Independent ID: fcde7f10-d897-1276-a3b7-4c5d19d14e4c
- Content: Razor Components JavaScript interop
- Content Source: aspnetcore/razor-components/javascript-interop.md
- Product: aspnet-core
- GitHub Login: @guardrex
- Microsoft Alias: riande
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done