diff --git a/aspnetcore/blazor/tutorials/build-a-blazor-app.md b/aspnetcore/blazor/tutorials/build-a-blazor-app.md index 9f7f75b05e2a..55ad392ea02a 100644 --- a/aspnetcore/blazor/tutorials/build-a-blazor-app.md +++ b/aspnetcore/blazor/tutorials/build-a-blazor-app.md @@ -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: + + * 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. * Add a page title with the `PageTitle` component, which enables adding an HTML `` element to the page. :::moniker-end diff --git a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo0.razor b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo0.razor index fad5ea2d0d59..b4780204800d 100644 --- a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo0.razor +++ b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo0.razor @@ -1,5 +1,5 @@ @page "/todo" -@rendermode Auto +@attribute [RenderModeServer] <PageTitle>Todo</PageTitle> diff --git a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo2.razor b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo2.razor index 3491cee96f0d..7c1cd58b6cc8 100644 --- a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo2.razor +++ b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo2.razor @@ -1,5 +1,5 @@ @page "/todo" -@rendermode Auto +@attribute [RenderModeServer] <PageTitle>Todo</PageTitle> diff --git a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo3.razor b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo3.razor index 7c7d2ae5ca27..e73e955beadc 100644 --- a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo3.razor +++ b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo3.razor @@ -1,5 +1,5 @@ @page "/todo" -@rendermode Auto +@attribute [RenderModeServer] <PageTitle>Todo</PageTitle> diff --git a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo6.razor b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo6.razor index 33d185c4d30a..1b69cb8e7e0b 100644 --- a/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo6.razor +++ b/aspnetcore/blazor/tutorials/build-a-blazor-app/8.0/Todo6.razor @@ -1,5 +1,5 @@ @page "/todo" -@rendermode Auto +@attribute [RenderModeServer] <PageTitle>Todo</PageTitle> diff --git a/aspnetcore/blazor/tutorials/index.md b/aspnetcore/blazor/tutorials/index.md index 259841b2b301..576f6dbc4ab0 100644 --- a/aspnetcore/blazor/tutorials/index.md +++ b/aspnetcore/blazor/tutorials/index.md @@ -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>