Two-way data binding (bidirectional data binding) refers to two components acting as the source object for the destination properties of each other.
Questions tagged [2-way-object-databinding]
333 questions
1
vote
1 answer
VueJS - v-model in for-loop
I'm trying to build something like the questions in OkayCupid, but all the questions - which are different forms - are located on the same component.
I use an object of questions and 3 possible answers for each question, and I use v-for to loop…

Yosef Shalev
- 25
- 6
1
vote
1 answer
2 way Databinding with ViewModel-SavedState
I have a subscription form: Name, Address, Local, etc, etc... and I want to be able to use Data Binding, LiveData and SavedStateHandle to handle and persist data.
Let's assume: 1 way Data Binding, LiveData and SavedStateHandle
private val _name:…

GuilhE
- 11,591
- 16
- 75
- 116
1
vote
2 answers
Android studio databinding error, Cannot find symbol: debug/dataBindingGenBaseClassesDebug/databinding/ActivitySignupBinding.java
project/build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath…

Mukesh
- 63
- 9
1
vote
2 answers
Angular: 2 way data binding for a custom input in a child component
How to make 2-way data binding for a custom input in child component in Angular 8?
I used banana-in-a-box [(...)] syntax but it doesn't make changes in child component visible in the parent component.
In the result, it should work with the…

ame
- 773
- 9
- 21
1
vote
1 answer
2 way binding ngModel changes is also reflecting in its assigned temp variable(assigned on page load)
I have a 2 way binding model which i am assigning to a temp variable on page load. But the temp variable also taking the NgModel changes.
this.questionService.getAll(this.id, this.bcID).subscribe(_result => {
this.questions =…

Rohit Adhikari
- 95
- 10
1
vote
0 answers
React - Rending JSON as UI objects and allowing any user changes to these UI objects to update the JSON
We have an internal tooling system that uses JSON to specify various actions, tasks etc. I'm making a single page web application to visualise this information. The web application contains a text area for editing/pasting JSON and another area which…

friartuck
- 2,954
- 4
- 33
- 67
1
vote
1 answer
2 way binding in UITableView using RxSwift
I am using MVVM pattern with RxSwift, RxCocoa, RxDataSources.
I have successfully populated the UITableView with array of PaletteViewModel present in ListViewModel by using RxDataSource but it's one way binding.
I want to achieve what I have shown…

Anirudha Mahale
- 2,526
- 3
- 37
- 57
1
vote
3 answers
How to databind the SelectedItem of a WinForms ComboBox to a TextBox
Code
I have this UI
with this code
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
namespace WinFormsComboBoxDatabinding
{
public partial class Form1 : Form
{
public…

Lernkurve
- 20,203
- 28
- 86
- 118
1
vote
2 answers
Angular controlling a list of objects visibility on the same view
In AngularJs if you had 2 lists and the second list depended on the values of the first list, it would automatically update. This could be done simply like this:
function toDoCtrl($scope) {
$scope.questions = [
{
active: true,
…

r3plica
- 13,017
- 23
- 128
- 290
1
vote
3 answers
Confusion over MVVM and two way Data Binding
I am trying to create a simple "Log in" screen using the MVVM pattern. I have two-way data binding between my View and a Model class, but what does that leave for the ViewModel to do?
Originally I thought that I would not even have a Model class and…

Dane Lowrey
- 170
- 1
- 10
1
vote
0 answers
Databinding - set attribute to null
I'm facing a weird problem with the databinding library in android. In my todo app I want to use two way databinding for the add task form. This is my model which gets putted into the view layout.
public class TaskFormModel extends BaseObservable…

jennymo
- 1,450
- 1
- 18
- 43
1
vote
1 answer
Avoid 2 way databinding on data assignment in Vue.js
I have a vue instance:
var vue = new Vue({
el: '#vue-wrapper',
data: {
items: [],
selectedItem: ''
})
I initialize items with data coming from my phoenix server like this:
vue.items = <%= raw(@stories) %>
When…

Razinar
- 727
- 3
- 13
- 21
1
vote
2 answers
Angular 2, setting the selected value on a select list based on selected value of another select list
I am sure this is a simple answer but I just cannot seem to solve it.
I have a dropdown list with names in it John, Jack, Jill, etc. I have a second List with professions in Builder, Joiner, Plasterer, etc.
What I am trying to do is when I select…

stephenad
- 55
- 1
- 12
1
vote
1 answer
show data onClick data binding in Android
I have the standard login form which has 2 edit text (one for email and other for password) and a button for log-in.
I want to send email and password to the server when the user clicks on login button.
activity_main.xml

Ankur_009
- 3,823
- 4
- 31
- 47
1
vote
1 answer
Two way data binding in Angular JS for graphs implemented using HighCharts
I'm trying to write a directive for HighCharts in AngularJS which supports two way data binding. On click of a function in the HTML, am trying to load the graph with new data.
Please check the below snipet.
HTML:

LS2
- 152
- 3
- 16