Browse Source

Update folder paths for BlazorServer in tutorial

Adjusted instructions to reference the correct `Components/Pages` folder for BlazorServer projects instead of `Pages`, ensuring clarity for users following the tutorial.
pull/24235/head
enisn 3 months ago
parent
commit
cb6d92cf35
No known key found for this signature in database GPG Key ID: A052619F04155D1C
  1. 6
      docs/en/tutorials/todo/single-layer/index.md

6
docs/en/tutorials/todo/single-layer/index.md

@ -567,7 +567,7 @@ If you open [Swagger UI](https://swagger.io/tools/swagger-ui/) by entering the `
### Index.razor.cs
Open the `Index.razor.cs` file in the `Pages` folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block:
Open the `Index.razor.cs` file in the {{if UI=="BlazorServer"}}`Components/Pages` {{else}} `Pages` {{end}} folder{{if UI=="Blazor"}} in your `Todo.Blazor` project{{end}} and replace the content with the following code block:
```csharp
{{if UI=="Blazor"}}
@ -615,7 +615,7 @@ This class uses the {{if UI=="Blazor"}}`ITodoAppService`{{else}}`TodoAppService`
### Index.razor
Open the `Index.razor` file in the `Pages` folder and replace the content with the following code block:
Open the `Index.razor` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and replace the content with the following code block:
```xml
@page "/"
@ -658,7 +658,7 @@ Open the `Index.razor` file in the `Pages` folder and replace the content with t
### Index.razor.css
As the final touch, open the `Index.razor.css` file in the `Pages` folder and add the following code block at the end of the file:
As the final touch, open the `Index.razor.css` file in the {{if UI=="BlazorServer"}}`Components/Pages`{{else}}`Pages`{{end}} folder and add the following code block at the end of the file:
````css
#TodoList{

Loading…
Cancel
Save