Skip to content

Commit ddb9215

Browse files
committed
Updates
1 parent e307698 commit ddb9215

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

aspnetcore/blazor/components/integration-hosted-webassembly.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Integrate ASP.NET Core Razor components with MVC or Razor Pages in hosted Blazor WebAssembly
2+
title: Integrate ASP.NET Core Razor components with MVC or Razor Pages in hosted Blazor WebAssembly solutions
33
author: guardrex
4-
description: Learn about Razor component integration scenarios for hosted Blazor WebAssembly apps, including prerendering of Razor components on the server.
4+
description: Learn about Razor component integration scenarios for hosted Blazor WebAssembly apps with MVC or Razor Pages, including prerendering of Razor components on the server.
55
monikerRange: '>= aspnetcore-3.1 < aspnetcore-8.0'
66
ms.author: riande
77
ms.custom: mvc
88
ms.date: 11/18/2024
99
uid: blazor/components/integration-hosted-webassembly
1010
---
11-
# Integrate ASP.NET Core Razor components with MVC or Razor Pages in hosted Blazor WebAssembly
11+
# Integrate ASP.NET Core Razor components with MVC or Razor Pages in hosted Blazor WebAssembly solutions
1212

1313
> [!NOTE]
1414
> Hosted Blazor WebAssembly solutions remain supported, but the project template was removed and is no longer supported in .NET 8 or later. This article appears in the table of contents up to .NET 7 for reference, but note that .NET 7 is a [Standard Support Term](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) release that's no longer supported.
@@ -302,7 +302,7 @@ After adopting the preceding configuration, embed Razor components into pages or
302302

303303
## Render components in a page or view with the Component Tag Helper
304304

305-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
305+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
306306

307307
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
308308
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
@@ -351,7 +351,7 @@ The preceding approach usually isn't required because the app usually prerenders
351351

352352
## Render components in a page or view with a CSS selector
353353

354-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in the `Program.cs` file. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
354+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in the `Program.cs` file. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
355355

356356
In `Program.cs` file of the **:::no-loc text="Client":::** project, add the namespace for the project's Razor components to the top of the file:
357357

@@ -864,7 +864,7 @@ After adopting the preceding configuration, embed Razor components into pages or
864864

865865
## Render components in a page or view with the Component Tag Helper
866866

867-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
867+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
868868

869869
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
870870
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
@@ -913,7 +913,7 @@ The preceding approach usually isn't required because the app usually prerenders
913913

914914
## Render components in a page or view with a CSS selector
915915

916-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in the `Program.cs` file. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
916+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in the `Program.cs` file. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
917917

918918
In `Program.cs` file of the **:::no-loc text="Client":::** project, add the namespace for the project's Razor components to the top of the file:
919919

@@ -1248,7 +1248,7 @@ If the donor project is created from an ASP.NET Core project template and the fi
12481248
12491249
## Render components in a page or view with the Component Tag Helper
12501250

1251-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
1251+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) supports two render modes for rendering a component from a Blazor WebAssembly app in a page or view:
12521252

12531253
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
12541254
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
@@ -1281,7 +1281,7 @@ Additional work might be required depending on the static resources that compone
12811281

12821282
## Render components in a page or view with a CSS selector
12831283

1284-
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-and-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in `Program.cs`. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
1284+
After [configuring the solution](#solution-configuration), including the [additional configuration](#configuration-for-embedding-razor-components-into-pages-or-views), add root components to the **:::no-loc text="Client":::** project of a hosted Blazor WebAssembly solution in `Program.cs`. In the following example, the `Counter` component is declared as a root component with a CSS selector that selects the element with the `id` that matches `counter-component`. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
12851285

12861286
In `Program.cs` of the **:::no-loc text="Client":::** project, add the namespace for the project's Razor components to the top of the file:
12871287

aspnetcore/blazor/components/integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Integrate ASP.NET Core Razor components with MVC or Razor Pages
33
author: guardrex
4-
description: Learn about Razor component integration scenarios for MVC and Razor Pages, including prerendering of Razor components on the server.
4+
description: Learn about Razor component integration scenarios for MVC or Razor Pages, including prerendering of Razor components on the server.
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc

0 commit comments

Comments
 (0)