79101508

Date: 2024-10-18 09:49:56
Score: 2.5
Natty:
Report link

When my js is in a razor class library and my page is called "View" and it's in a folder "Pages" this is what I use:

await JSHost.ImportAsync(nameof(View), $"/_content/{GetType().Assembly.GetName().Name}/Pages/{nameof(View)}.razor.js");

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Scott Egan