Implementing Blazor Components
In the last chapter, we learned about Blazor routing and layout. We then built a navigation framework by creating the routing and layout of our app. After we created the navigation framework, we created the top-level pages. With the implementation of Razor pages, we can explore the password database in a similar way that we can explore in the XAML version. Razor pages are Razor components, but they are not reusable. Razor components are building blocks of the Blazor UI. In this chapter, we will introduce Razor components. To understand Razor components, we will introduce data binding and the Razor component life cycle. After learning about these concepts, we will refine our code and convert duplicated code into reusable Razor components. Finally, we will use the Razor components that we build to implement CRUD operations in our app.
We will cover the following topics in this chapter:
- Introducing Razor components
- Data binding
- Understanding...