liveBook · Manning

Data binding

Data binding is a technique that connects application data with a user interface so values or changes can be represented or synchronized between them.

How 7 Manning books explain it

D3.js in Action, Third Edition

Data binding is a pattern that associates data values with document elements so the elements can be generated or updated from those values.

How it is used
Turns dataset rows into chart marks and interface elements, then reconciles marks when filtered data changes.
How deep it goes
Walks through selectAll(), data(), join(), bound callbacks, keyed matching, and enter–update–exit transitions without detailing join() internals.
Examples
Builds a technology bar chart, music-format legend, salary histogram, and filtered scatterplot.
What you can do after
Apply it via D3 to generate SVG or HTML elements from arrays and preserve element identity during filtered updates.

Read how D3.js in Action, Third Edition explains data binding →

.NET MAUI in Action

Data binding is a technique that connects user-interface properties to source-object properties or commands so values and actions can be synchronized.

How it is used
Connects .NET MAUI UI properties, collections, and commands to code or other UI elements for interactive apps.
How deep it goes
Defines sources, targets, BindableObject, binding contexts, view bindings, collection templates, and MVVM commands; defers value converters.
Examples
Demonstrates Entry-to-Label text, Slider-to-Image scale, a to-do CollectionView, and an inventory search-and-submit workflow.
What you can do after
Apply it via .NET MAUI XAML and ViewModels to synchronize controls, render collections, and invoke bound commands.

Read how .NET MAUI in Action explains data binding →

Pro Angular 16

Data binding is a technique that connects application data with a user-interface representation so changes can be reflected between them.

How it is used
Connects component data and logic to dynamic HTML generated from Angular templates.
How deep it goes
Explains one-way bindings through expressions, targets, interpolation, element configuration, classes, and styles; defers advanced bindings and custom extensions.
Examples
Uses product counts, a to-do table’s data source, store-category counts, and cart quantities to illustrate bindings.
What you can do after
Apply it via Angular templates to display component values and configure element properties, classes, and styles.

Read how Pro Angular 16 explains data binding →

Pro ASP.NET Core 7, Tenth Edition

A Blazor component binding that associates a component value parameter with a property on the edited model.

How it is used
Keeps HTML inputs, child components, and edit-form controls synchronized with C# properties.
How deep it goes
Works through manual event wiring, binding attributes, custom component parameter conventions, and typed form controls; does not descend into binding internals.
Examples
Uses a city input and buttons, a city-selection component that highlights table rows, and an editor for person properties.
What you can do after
Apply it via Blazor binding attributes to synchronize inputs and components, including typed controls inside EditForm.

Read how Pro ASP.NET Core 7, Tenth Edition explains data binding →

Web Components in Action

Data binding is a technique for synchronizing application data with a user interface or component state.

How it is used
Frames data binding as a framework-provided way to coordinate application data, interface state, and component interactions.
How deep it goes
Contrasts framework offerings with no-framework alternatives but stops short of implementing a binding mechanism.
Examples
Uses nested color-picker inputs, DOM event bubbling, event buses, and deprecated Object.observe as concrete reference points.
What you can do after
Evaluate whether framework data binding or simpler event and state-management patterns better fit a component application.

Read how Web Components in Action explains data binding →

Vanilla Web

Dynamic data binding synchronizes changing application data with user-interface elements, potentially in both directions.

How it is used
Keeps interactive interfaces synchronized as application data changes and users act.
How deep it goes
Works through an explicit counter binding and surveys progressively more abstract techniques without requiring a framework runtime.
Examples
Uses a counter whose buttons update state and whose render function updates an output element.
What you can do after
Build it from scratch with a state object, render function, and event listeners; choose more elaborate bindings when needed.

Read how Vanilla Web explains data binding →

Web Component Development with Modern Libraries and Tooling

A synchronization mechanism that connects component properties with rendered DOM values or behavior.

How it is used
Connects component properties, DOM output, events, and custom-element attributes so interface changes remain synchronized.
How deep it goes
Explains reactive properties, event updates, derived getters, attribute modes, and value converters through implementation examples.
Examples
Demonstrates a my-math component with increment and decrement buttons, derived arithmetic values, and getter-based alternatives.
What you can do after
Build it from scratch with FAST templates, observable properties, event bindings, decorators, and attribute converters.

Read how Web Component Development with Modern Libraries and Tooling explains data binding →

Also covered in

What to know first

Related concepts

Questions about data binding

What is data binding?

Data binding is a technique that connects application data with a user interface so values or changes can be represented or synchronized between them.

Which Manning books explain data binding?

D3.js in Action, Third Edition, .NET MAUI in Action, Pro Angular 16, Pro ASP.NET Core 7, Tenth Edition, Web Components in Action, Vanilla Web and Web Component Development with Modern Libraries and Tooling.

What should I know before learning data binding?

Manning books that teach data binding usually introduce Document Object Model, handler, button and component template first.

What kinds of data binding are there?

Kinds of data binding include attribute binding and Bind attribute.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.