diff --git a/aspnetcore/blazor/includes/js-interop/js-collocation.md b/aspnetcore/blazor/includes/js-interop/js-collocation.md index f82ff5ccd5..196ccfead9 100644 --- a/aspnetcore/blazor/includes/js-interop/js-collocation.md +++ b/aspnetcore/blazor/includes/js-interop/js-collocation.md @@ -2,11 +2,10 @@ Collocation of JavaScript (JS) files for Razor components is a convenient way to Razor components of Blazor apps collocate JS files using the `.razor.js` extension and are publicly addressable using the path to the file in the project: -`{PATH}/{COMPONENT}.{EXTENSION}.js` +`{PATH}/{COMPONENT}.razor.js` * The `{PATH}` placeholder is the path to the component. * The `{COMPONENT}` placeholder is the component. -* The `{EXTENSION}` placeholder matches the extension of the component (`razor`). When the app is published, the framework automatically moves the script to the web root. Scripts are moved to `bin/Release/{TARGET FRAMEWORK MONIKER}/publish/wwwroot/{PATH}/{COMPONENT}.razor.js`, where the placeholders are: