Skip to content

Commit

Permalink
Merge pull request #29684 from dotnet/main
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Jun 30, 2023
2 parents e250fc7 + c322d9b commit 0f0c411
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion aspnetcore/blazor/tutorials/build-a-blazor-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ The `-n|--name` option in the preceding command specifies the name of the new Ra

Open the `Todo` component in any file editor and make the following changes at the top of the file:

<!-- UPDATE FOR 8.0 -->

* Add an `@page` Razor directive with a relative URL of `/todo`.
* Add the `@rendermode` Razor directive set to `Auto`. The directive indicates that for this component the render mode should be determined automatically based on a policy. The default render mode for a Blazor Web App is server-side rendering (SSR), which means that the `Todo` component is rendered interactively on the server via Blazor Server hosting with server-side prerendering.
* Add the `[RenderModeServer]` attribute. The attribute indicates that for this component the render mode should be server-side rendering (SSR), which means that the `Todo` component is rendered interactively on the server via Blazor Server hosting with server-side prerendering. <!-- `@rendermode` Razor directive set to `Auto`. The directive indicates that for this component the render mode should be determined automatically based on a policy. The default render mode for a Blazor Web App is server-side rendering (SSR), which means that the `Todo` component is rendered interactively on the server via Blazor Server hosting with server-side prerendering. -->
* Add a page title with the `PageTitle` component, which enables adding an HTML `<title>` element to the page.

:::moniker-end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/todo"
@rendermode Auto
@attribute [RenderModeServer]

<PageTitle>Todo</PageTitle>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/todo"
@rendermode Auto
@attribute [RenderModeServer]

<PageTitle>Todo</PageTitle>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/todo"
@rendermode Auto
@attribute [RenderModeServer]

<PageTitle>Todo</PageTitle>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/todo"
@rendermode Auto
@attribute [RenderModeServer]

<PageTitle>Todo</PageTitle>

Expand Down
4 changes: 3 additions & 1 deletion aspnetcore/blazor/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ For an overview of Blazor, see <xref:blazor/index>.

* <xref:blazor/tutorials/build-a-blazor-app>

* <xref:blazor/tutorials/signalr-blazor>
<!-- UPDATE FOR 8.0 -->

* <xref:blazor/tutorials/signalr-blazor-preview>

* <xref:blazor/hybrid/tutorials/index>

Expand Down

0 comments on commit 0f0c411

Please sign in to comment.