How to load/integrate my external Js file into Maui Blazor?

Viewed 155

In Blazor-Server I put the call for external js-files in the _Layout.cshtml file and use/call it like this:

<script src="js/my.js"></script>

I put the file my.js in wwwroot/js/. I want to do the same thing in .Net Maui-Blazor App.

In which file do I put the <script ...> call in Maui?

1 Answers

Guess I have found the answere it is:

wwwroot/index.html

(in this file add e.g. <script src="js/my.js"></script> after the </html>)

Related