Migration topic Blazor nit updates (#20635)

pull/20637/head
Luke Latham 2020-11-17 07:10:56 -06:00 committed by GitHub
parent 46c983d821
commit 70426fd6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ If updating a Blazor WebAssembly project, skip to the [Update Blazor WebAssembly
+<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet" />
```
Standalone Blazor WebAssembly example:
Standalone Blazor WebAssembly or Blazor Server example:
```diff
+<link href="BlazorSample.styles.css" rel="stylesheet" />
@ -80,7 +80,7 @@ If updating a Blazor WebAssembly project, skip to the [Update Blazor WebAssembly
+<link href="BlazorSample.Client.styles.css" rel="stylesheet" />
```
1. In the `Shared/MainLayout.razor` file, surround all of the content in a `<div>` element with an `class` of `page`:
1. In the `MainLayout` component (`Shared/MainLayout.razor`), surround the component's HTML markup with a `<div>` element that has a `class` attribute set to `page`:
```razor
<div class="page">
@ -333,7 +333,7 @@ For a Blazor WebAssembly project, including the *`Client`* project of a hosted B
+<app id="app">Loading...</app>
```
1. In `Program.Main`:
1. In `Program.Main` (`Program.cs`):
* Change the reference to the `<app>` element to a CSS selector by adding a hash `#` to it.
* Change the `HttpClient` registration to scoped.