https://github.com/michle99/blazingpizzaapp
Blazing Pizza App
https://github.com/michle99/blazingpizzaapp
asp-net blazor blazor-application blazor-client dotnet dotnet6
Last synced: about 2 months ago
JSON representation
Blazing Pizza App
- Host: GitHub
- URL: https://github.com/michle99/blazingpizzaapp
- Owner: Michle99
- License: mit
- Created: 2023-03-25T01:36:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T22:21:14.000Z (about 3 years ago)
- Last Synced: 2025-06-04T09:56:56.002Z (about 1 year ago)
- Topics: asp-net, blazor, blazor-application, blazor-client, dotnet, dotnet6
- Language: HTML
- Homepage:
- Size: 1.96 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-CODE
Awesome Lists containing this project
README
# Create a user interface with Blazor components
- Run the following to create a new Blazor App:
```
dotnet new blazorserver -o BlazingPizza --no-https true -f net6.0
```
- Start the Blazor App:
```
dotnet watch
```
# Pizza Page

# Access data from a Blazor component
Engaging websites need to display dynamic content that might change all the time. Obtaining data from a dynamic source, such as a database or web service, is a fundamental technique in web development.
# Creating a registered data service
- Create a data class
- Create a service class
[Learn more here](https://learn.microsoft.com/en-us/training/modules/interact-with-data-blazor-web-apps/4-access-data-from-blazor-components)
# Share data in Blazor applications
Blazor includes several ways to share information between components. You can use component parameters or cascading parameters to send values from a parent component to a child component. The AppState pattern is another approach you can use to store values and access them from any component in the application.
[Learn how to share data between blazor components](https://learn.microsoft.com/en-us/training/modules/interact-with-data-blazor-web-apps/6-share-data-in-blazor-applications)
# Bind controls to data in Blazor applications
The Blazing Pizza app needs to update the interface when customers amend pizzas and add them to their orders. Blazor allows you to bind HTML controls to C# properties to update when their values change.