From 4836fc5be41bb17923ae77b56039b5b8422c6d27 Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Tue, 16 Apr 2024 14:41:17 +0200 Subject: [PATCH] [Blazor] js-collocation - remove {EXTENSION} placeholder (#32336) --- aspnetcore/blazor/includes/js-interop/js-collocation.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: