Questions tagged [data-binding]

8 questions
3
votes
1 answer

Mutually dependent Properties in WPF

I have a WPF view which contains 2 mutually dependent properties; a change in one might trigger a change in the other. How do I write code that cleanly updates both? More specifically: I have WPF view which makes it possible to export data. That…
Ramzi Kahil
  • 1,089
  • 1
  • 10
  • 20
1
vote
1 answer

Variable binding time (Steve McConnell)

Currently reading Steve McConnell "Code complete". "General issues in using variables" chapter, "Binding time" section. He says about variable's binding time in such languages as C++ and Java, that have phases like compiling. Coding time (use of…
1
vote
1 answer

How does one-way data binding and MVC achieve loose coupling?

In my limited understanding, one-way data binding could happen like the following: On the back-end, I have a Node backend server. In that, I have a layer that communicates with the database (Model). I have a controller that exposes URIs that the…
szeb
  • 121
  • 5
1
vote
0 answers

Common business logic in android MVVM

Requirement I am currently working on an android application that uses MVVM, live data and databinding. I have a use-case where I need to show a Comment button in multiple screens in my android app. The business logic is simple, when the user…
Anirudh
  • 119
  • 2
0
votes
1 answer

Data-binding for Boolean values

Wondering if there is anything closely resembling data-binding but for boolean values / triggers. It seems like it could be related to Binary Decision Diagrams (BDDs), but they are precomputed rather than dynamic I think. Say you have 100 or 1000…
Lance
  • 2,537
  • 15
  • 34
0
votes
0 answers

Do database CRUD operations dictate whether and application should be one-way or two-way binding?

I am confused (easily done). To me model is the data from the database sent back as JSON. When I think of that in an Angular context, when two-way binding is configured, it makes me think the framework is watching/polling the database so that when…
johnny
  • 3,669
  • 3
  • 21
  • 35
-1
votes
1 answer

Cross-domain data binding

I've been developing several front-end web-applications recently that bind against a database using a RESTful CRUD api. I've noticed a massive amount of boilerplate code going into defining the API. For example, on the back-end I define a…
-3
votes
1 answer

React one-way data binding vs Angular two-way data binding

After hours of reading blog posts, I understand that React has one-way data binding, and Angular has two-way. But I don't actually know what that means.... React import { useState } from 'react'; import Switch from "./switch"; function App() { …
Paul Draper
  • 5,972
  • 3
  • 22
  • 37