Passing Data Across Blazor Components
In this article we will explore a mechanism of passing data across Blazor Components In the previous article we have seen the Blazor Server App for performing CRUD operations using EntityFrameworkCore with .NET 5. The Blazor Server Apps runs on the server and based on the UI event the component on the server is executed and the DOM updates are serialized back on the browser. We can create a Blazor Client App which runs on the browser on .NET WebAssembly. The Blazor is a feature of the ASP.NET Core for creating interactive web applications. So we can look it as one the possible alternative for Angular, React or Vue.js etc. Blazor components are autonomous, this means that it contains UI, Data (aka state), Events and Logic. These components are re-usable and we can use one component as a child of the other component. But in this situation, there might be a scenario that parent component want to pass data to child components and child component want to pass data to ...