Skip to content

Commit 68ff043

Browse files
authored
Update 01-components-and-layout.md (#258)
Small text changes.
1 parent 64df96c commit 68ff043

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/01-components-and-layout.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The solution already contains four projects:
1515

1616
- **BlazingPizza.Client**: This is the Blazor project. It contains the UI components for the app.
1717
- **BlazingPizza.Server**: This is the ASP.NET Core project hosting the Blazor app and also the backend services for the app.
18-
- **BlazingPizza.Shared**: Shared model types for the app.
19-
- **BlazingPizza.ComponentsLibrary**: A library of components and helper code to be used by the app in later sessions.
18+
- **BlazingPizza.Shared**: This project contains the shared model types for the app.
19+
- **BlazingPizza.ComponentsLibrary**: This is a library of components and helper code to be used by the app in later sessions.
2020

2121
The **BlazingPizza.Server** project should be set as the startup project.
2222

@@ -46,7 +46,7 @@ Add a `@code` block to *Index.razor* with a list field to keep track of the avai
4646
}
4747
```
4848

49-
The code in the `@code` block is added to the generated class for the component. The `PizzaSpecial` type is already defined for you in the Shared project.
49+
The code in the `@code` block is added to the generated class for the component. The `PizzaSpecial` type is already defined for you in the **BlazingPizza.Shared** project.
5050

5151
To get the available list of specials we need to call an API on the backend. Blazor provides a preconfigured `HttpClient` through dependency injection that is already setup with the correct base address. Use the `@inject` directive to inject an `HttpClient` into the `Index` component.
5252

@@ -70,7 +70,7 @@ Override the `OnInitializedAsync` method in the `@code` block to retrieve the li
7070
}
7171
```
7272

73-
The `/specials` API is defined by the `SpecialsController` in the Server project.
73+
The `/specials` API is defined by the `SpecialsController` in the **BlazingPizza.Server** project.
7474

7575
Once the component is initialized it will render its markup. Replace the markup in the `Index` component with the following to list the pizza specials:
7676

0 commit comments

Comments
 (0)