Migration topic Blazor nit updates (#20635)
parent
46c983d821
commit
70426fd6ac
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue