Skip to content

Commit e307698

Browse files
committed
Updates
1 parent 6ce1c8a commit e307698

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ To set up prerendering for a hosted Blazor WebAssembly app:
145145

146146
1. Run the **:::no-loc text="Server":::** project. The hosted Blazor WebAssembly app is prerendered by the **:::no-loc text="Server":::** project for clients.
147147

148-
### Configuration for embedding Razor components into pages and views
148+
### Configuration for embedding Razor components into pages or views
149149

150-
The following sections and examples for embedding Razor components from the **:::no-loc text="Client":::** Blazor WebAssembly app into pages and views of the server app require additional configuration.
150+
The following sections and examples for embedding Razor components from the **:::no-loc text="Client":::** Blazor WebAssembly app into pages or views of the server app require additional configuration.
151151

152152
The **:::no-loc text="Server":::** project must have the following files and folders.
153153

@@ -704,9 +704,9 @@ To set up prerendering for a hosted Blazor WebAssembly app:
704704

705705
1. Run the **:::no-loc text="Server":::** project. The hosted Blazor WebAssembly app is prerendered by the **:::no-loc text="Server":::** project for clients.
706706

707-
### Configuration for embedding Razor components into pages and views
707+
### Configuration for embedding Razor components into pages or views
708708

709-
The following sections and examples for embedding Razor components from the **:::no-loc text="Client":::** Blazor WebAssembly app into pages and views of the server app require additional configuration.
709+
The following sections and examples for embedding Razor components from the **:::no-loc text="Client":::** Blazor WebAssembly app into pages or views of the server app require additional configuration.
710710

711711
The **:::no-loc text="Server":::** project must have the following files and folders.
712712

@@ -1145,9 +1145,9 @@ To set up prerendering for a hosted Blazor WebAssembly app:
11451145

11461146
1. Run the **:::no-loc text="Server":::** project. The hosted Blazor WebAssembly app is prerendered by the **:::no-loc text="Server":::** project for clients.
11471147

1148-
### Configuration for embedding Razor components into pages and views
1148+
### Configuration for embedding Razor components into pages or views
11491149

1150-
The following sections and examples in this article for embedding Razor components of the client Blazor WebAssembly app into pages and views of the server app require additional configuration.
1150+
The following sections and examples in this article for embedding Razor components of the client Blazor WebAssembly app into pages or views of the server app require additional configuration.
11511151

11521152
Use a default Razor Pages or MVC layout file in the **:::no-loc text="Server":::** project. The **:::no-loc text="Server":::** project must have the following files and folders.
11531153

@@ -1338,6 +1338,6 @@ Additional work might be required depending on the static resources that compone
13381338

13391339
:::moniker range="< aspnetcore-5.0"
13401340

1341-
Integrating Razor components into Razor Pages and MVC apps in a hosted Blazor WebAssembly [solution](xref:blazor/tooling#visual-studio-solution-file-sln) is supported in ASP.NET Core in .NET 5 or later. Select a .NET 5 or later version of this article.
1341+
Integrating Razor components into Razor Pages or MVC apps in a hosted Blazor WebAssembly [solution](xref:blazor/tooling#visual-studio-solution-file-sln) is supported in ASP.NET Core in .NET 5 or later. Select a .NET 5 or later version of this article.
13421342

13431343
:::moniker-end

aspnetcore/blazor/components/integration.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ uid: blazor/components/integration
1212

1313
[!INCLUDE[](~/includes/not-latest-version.md)]
1414

15-
Razor components can be integrated into Razor Pages and MVC apps. When the page or view is rendered, components can be prerendered at the same time.
15+
Razor components can be integrated into Razor Pages or MVC apps. When the page or view is rendered, components can be prerendered at the same time.
1616

1717
> [!IMPORTANT]
1818
> Framework changes across ASP.NET Core releases led to different sets of instructions in this article. Before using this article's guidance, confirm that the document version selector at the top of this article matches the version of ASP.NET Core that you intend to use for your app.
@@ -26,11 +26,11 @@ After [configuring the project](#configuration), use the guidance in the followi
2626
* For components that are directly routable from user requests. Follow this guidance when visitors should be able to make an HTTP request in their browser for a component with an [`@page`](xref:mvc/views/razor#page) directive.
2727
* [Use routable components in a Razor Pages app](#use-routable-components-in-a-razor-pages-app)
2828
* [Use routable components in an MVC app](#use-routable-components-in-an-mvc-app)
29-
* For components that aren't directly routable from user requests, see the [Render components from a page or view](#render-components-from-a-page-or-view) section. Follow this guidance when the app embeds components into existing pages and views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
29+
* For components that aren't directly routable from user requests, see the [Render components from a page or view](#render-components-from-a-page-or-view) section. Follow this guidance when the app embeds components into existing pages or views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
3030

3131
## Configuration
3232

33-
Use the following guidance to integrate Razor components into pages and views of an existing Razor Pages or MVC app.
33+
Use the following guidance to integrate Razor components into pages or views of an existing Razor Pages or MVC app.
3434

3535
1. Add an imports file to the root folder of the project with the following content. Change the `{APP NAMESPACE}` placeholder to the namespace of the project.
3636

@@ -571,11 +571,11 @@ After [configuring the project](#configuration), use the guidance in the followi
571571
* Routable components: For components that are directly routable from user requests. Follow this guidance when visitors should be able to make an HTTP request in their browser for a component with an [`@page`](xref:mvc/views/razor#page) directive.
572572
* [Use routable components in a Razor Pages app](#use-routable-components-in-a-razor-pages-app)
573573
* [Use routable components in an MVC app](#use-routable-components-in-an-mvc-app)
574-
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages and views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
574+
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages or views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
575575

576576
## Configuration
577577

578-
Use the following guidance to integrate Razor components into pages and views of an existing Razor Pages or MVC app.
578+
Use the following guidance to integrate Razor components into pages or views of an existing Razor Pages or MVC app.
579579

580580
> [!IMPORTANT]
581581
> The use of a layout page (`_Layout.cshtml`) with a [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) for a <xref:Microsoft.AspNetCore.Components.Web.HeadOutlet> component is required to control `<head>` content, such as the page's title (<xref:Microsoft.AspNetCore.Components.Web.PageTitle> component) and other head elements (<xref:Microsoft.AspNetCore.Components.Web.HeadContent> component). For more information, see <xref:blazor/components/control-head-content#control-head-content-during-prerendering>.
@@ -1089,11 +1089,11 @@ After [configuring the project](#configuration), use the guidance in the followi
10891089
* Routable components: For components that are directly routable from user requests. Follow this guidance when visitors should be able to make an HTTP request in their browser for a component with an [`@page`](xref:mvc/views/razor#page) directive.
10901090
* [Use routable components in a Razor Pages app](#use-routable-components-in-a-razor-pages-app)
10911091
* [Use routable components in an MVC app](#use-routable-components-in-an-mvc-app)
1092-
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages and views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
1092+
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages or views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
10931093

10941094
## Configuration
10951095

1096-
An existing Razor Pages or MVC app can integrate Razor components into pages and views:
1096+
An existing Razor Pages or MVC app can integrate Razor components into pages or views:
10971097

10981098
1. In the project's layout file:
10991099

@@ -1514,7 +1514,7 @@ To resolve the problem, use ***either*** of the following approaches:
15141514

15151515
:::moniker range="< aspnetcore-5.0"
15161516

1517-
Razor components can be integrated into Razor Pages and MVC apps. When the page or view is rendered, components can be prerendered at the same time.
1517+
Razor components can be integrated into Razor Pages or MVC apps. When the page or view is rendered, components can be prerendered at the same time.
15181518

15191519
Prerendering can improve [Search Engine Optimization (SEO)](https://developer.mozilla.org/docs/Glossary/SEO) by rendering content for the initial HTTP response that search engines can use to calculate page rank.
15201520

@@ -1523,11 +1523,11 @@ After [configuring the project](#configuration), use the guidance in the followi
15231523
* Routable components: For components that are directly routable from user requests. Follow this guidance when visitors should be able to make an HTTP request in their browser for a component with an [`@page`](xref:mvc/views/razor#page) directive.
15241524
* [Use routable components in a Razor Pages app](#use-routable-components-in-a-razor-pages-app)
15251525
* [Use routable components in an MVC app](#use-routable-components-in-an-mvc-app)
1526-
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages and views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
1526+
* [Render components from a page or view](#render-components-from-a-page-or-view): For components that aren't directly routable from user requests. Follow this guidance when the app embeds components into existing pages or views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper).
15271527

15281528
## Configuration
15291529

1530-
An existing Razor Pages or MVC app can integrate Razor components into pages and views:
1530+
An existing Razor Pages or MVC app can integrate Razor components into pages or views:
15311531

15321532
1. In the project's layout file:
15331533

0 commit comments

Comments
 (0)