@inject IGlossaryDialogService GlossaryDialogService @inject IJSRuntime JsRuntime Not found Sorry, there's nothing at this address. @code { protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await JsRuntime.InvokeVoidAsync("glossaryInterop.init", DotNetObjectReference.Create(this)); } } [JSInvokable] public void OpenGlossaryTerm(string termId) { GlossaryDialogService.AddDialog(termId); StateHasChanged(); } }
Sorry, there's nothing at this address.