diff --git a/aspnetcore/6.0/blazor/components/class-libraries.md b/aspnetcore/6.0/blazor/components/class-libraries.md index 82939e244542..fa3b22934258 100644 --- a/aspnetcore/6.0/blazor/components/class-libraries.md +++ b/aspnetcore/6.0/blazor/components/class-libraries.md @@ -239,7 +239,7 @@ When the `Link` component is used in a child component, the linked asset is also An alternative to using the `Link` component is to link to the library's stylesheet in the app's `
` markup. -`wwwroot/index.html` file (Blazor WebAssembly) or `Pages/_Host.cshtml` file (Blazor Server): +`wwwroot/index.html` file (Blazor WebAssembly) or `Pages/_Layout.cshtml` file (Blazor Server): ```diff + diff --git a/aspnetcore/6.0/blazor/components/css-isolation.md b/aspnetcore/6.0/blazor/components/css-isolation.md index 3249d7ec82f7..02f9b199e780 100644 --- a/aspnetcore/6.0/blazor/components/css-isolation.md +++ b/aspnetcore/6.0/blazor/components/css-isolation.md @@ -45,7 +45,7 @@ h1 { ## CSS isolation bundling -CSS isolation occurs at build time. Blazor rewrites CSS selectors to match markup rendered by the component. The rewritten CSS styles are bundled and produced as a static asset. The stylesheet is referenced inside the `` tag of `wwwroot/index.html` (Blazor WebAssembly) or `Pages/_Host.cshtml` (Blazor Server). The following `` element is added by default to an app created from the Blazor project templates, where the placeholder `{ASSEMBLY NAME}` is the project's assembly name: +CSS isolation occurs at build time. Blazor rewrites CSS selectors to match markup rendered by the component. The rewritten CSS styles are bundled and produced as a static asset. The stylesheet is referenced inside the `` tag of `wwwroot/index.html` (Blazor WebAssembly) or `Pages/_Layout.cshtml` (Blazor Server). The following `` element is added by default to an app created from the Blazor project templates, where the placeholder `{ASSEMBLY NAME}` is the project's assembly name: ```html @@ -208,7 +208,7 @@ In the following example: * The static web asset base path is `_content/ClassLib`. * The class library's assembly name is `ClassLib`. -`wwwroot/index.html` (Blazor WebAssembly) or `Pages_Host.cshtml` (Blazor Server): +`wwwroot/index.html` (Blazor WebAssembly) or `Pages/_Layout.cshtml` (Blazor Server): ```html diff --git a/aspnetcore/6.0/blazor/components/event-handling.md b/aspnetcore/6.0/blazor/components/event-handling.md index ed70327c4831..72b5cc7f454d 100644 --- a/aspnetcore/6.0/blazor/components/event-handling.md +++ b/aspnetcore/6.0/blazor/components/event-handling.md @@ -94,7 +94,7 @@ Custom events with custom event arguments are generally enabled with the followi } ``` -1. Register the custom event with the preceding handler in `wwwroot/index.html` (Blazor WebAssembly) or `Pages/_Host.cshtml` (Blazor Server) immediately after the Blazor ` + + ``` - * Update the Blazor script source to use the client-side Blazor WebAssembly script: + * In the `_Host.cshtml` file, update the `render-mode` of the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) to prerender the root `App` component with