A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
Hi ojiraye sigbenu,
It seems your application is Blazor WebAssembly app. And your code works fine in my side.
Here are a few things to check and try:
- Make sure that the
app.jsfile is located in thewwwroot/js/folder.
- Open the browser's developer console (press
F12in the browser), go to theConsoletab, and check if there are any error messages. - Make sure that the scripts are loading without issues in the browser(press
F12in the browser and go to Sources tab).
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena