Cant import scoped Javascript in Blazor Standalone WebAssembly
In the past I have already done this in InteractiveServer Blazor, which is to import
There is a way to make something similar work, by using global javascript files in
This is the web assembly startup implementation
// stack overflow post: https://stackoverflow.com/questions/79542079/cant-import-scoped-javascript-in-blazor-standalone-webassembly
{page}.razor.js in my razor page through IJSRuntime in the OnAfterRender step of the page lifecycle. as follows:Page.Razor.csPage.razor.jsThere is a way to make something similar work, by using global javascript files in
wwwroot\*.js and <script... directives but that is not desired in the moment. I didn't find any way to use a modular aproach handled by the ComponentBase object.This is the web assembly startup implementation
Program.cs.NET Core 9 environment
// stack overflow post: https://stackoverflow.com/questions/79542079/cant-import-scoped-javascript-in-blazor-standalone-webassembly
Stack Overflow
In the past I have already done this in InteractiveServer Blazor, which is to import {page}.razor.js in my razor page through IJSRuntime in the OnAfterRender step of the page lifecycle. as follows:...