Skip to content

Commit

Permalink
Update ToDo List tutorial (#29683)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Jun 30, 2023
1 parent 59286fb commit c322d9b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 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

0 comments on commit c322d9b

Please sign in to comment.