dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.63k stars 25.3k forks source link

Make a clear description of file location for JSHost.ImportAsync #32618

Closed maraf closed 4 months ago

maraf commented 5 months ago

Description

The documentation currently states

The CallJavaScript1 module is imported asynchronously from the collocated JS file with JSHost.ImportAsync.

It's not entirely true based on other file collocation that works in RCL. JSHost.ImportAsync always loads files relative to wwwroot/_framework directory. Examples for paths for JSHost.ImportAsync:

Based on feedback from https://github.com/dotnet/aspnetcore/issues/55817

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/import-export-interop?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/javascript-interoperability/import-export-interop.md

Document ID

8aab92a0-c05f-ef01-fb74-a0bf525aae69

Article author

@guardrex

github-actions[bot] commented 5 months ago

πŸ•ΊπŸ’ƒ Happy Cinco de Mayo! πŸ₯³πŸŽˆ

A green dinosaur πŸ¦– will be along shortly to assist. Stand-by ........

guardrex commented 5 months ago

Hello @maraf ... I'll get this fixed up as soon as possible, but it will take a couple of weeks to reach it due to a high priority tutorial that I'm working on.