Synchronous and Asynchronous Data Binding
In this chapter, we will explore various facets of data binding in Blazor. Binding is a cornerstone in modern web development. We’ll start with the fundamentals of binding values with DOM elements. Then, we will progress to binding specific DOM events, ensuring that your Blazor application is highly interactive and responsive. Most commercial applications will require integration with an external data provider. With that, you will have to perform asynchronous actions. We will explore how to pair them with bindings as well.
Further, we’ll cover customizing getters and setters, allowing for greater data handling flexibility. We will also cover the bind-Value
binding pattern, which should simplify most of your binding scenarios. Lastly, we will implement a commercial scenario of seamless binding with an external data provider. That comes in handy when implementing search modules or data persistence mechanisms.
However, we will...