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
2
votes
1 answer
DataBinding ObserableField not updating the view
I've gone through many post related to the data-binding but didn't find the solution for my problem. I've created a sample app to learn the data binding.
Expected Behaviour: I've a edittext and textview. The textview should get updated with…

Rahul Chaurasia
- 1,601
- 2
- 18
- 37
2
votes
1 answer
Angular 2 Two-way Data Binding redundant setter call
I wanted to implement Two-way Data Binding in my component following this tutorial: https://blog.thoughtram.io/angular/2016/10/13/two-way-data-binding-in-angular-2.html . It works, but I discovered that after every change the setter is called twice…

kcpr
- 1,055
- 1
- 12
- 28
2
votes
1 answer
string interpolation in angular 2 and it's dynamicity
In Angular2, why if i put a property in a simple view, like this:
{{allowServer}}
it change whenever its value change on its .ts file, and if i put it like this:
2
votes
2 answers
How to correctly 2-way-bind with reactive forms?
So far I've always seen that you shouldn't mix using [(ngModel)] with reactive forms, and instead simply use formControlName.
However, for me it doesn't seem to be working?
I have a form and I add controls to…

Nicolas
- 4,526
- 17
- 50
- 87
2
votes
1 answer
2 Way databinding for Webview and ProgressBar
I am trying to implement 2 way databinding for WebView and Progressbar.
Initially ProgressBar will continue to appear and as soon as webview finishes loading , progress bar should be GONE.
But I am not able to create that binding
I have created…

Napolean
- 5,303
- 2
- 29
- 35
2
votes
1 answer
Angular 2 Two-way Binding updates mock service constant
As I was going through the "Tour of Heroes" Angular 2 tutorial, I have noticed that when ngModel changes, the change propagates to other components utilizing the same object. But when I tried to log the mock service constant HEROES on the console,…

Rax Weber
- 3,730
- 19
- 30
2
votes
2 answers
2 way binding between 2 components works only on first letter
I am getting a very strange error that i have researched and I am having trouble figuring out. Most all of the items that I have found similar are about a year old before final changes and do not work now.
Error Message
Expression has changed after…

JamTay317
- 1,017
- 3
- 18
- 37
2
votes
1 answer
How does [(ngModel)] works with Unidirectional data flow in Angular 2
Angular 2 supports unidirectional data flow, one way at a time. How does two way data binding [(ngModel)] works in Angular2 ?

Shivanka
- 723
- 2
- 8
- 21
2
votes
1 answer
.Net ObjectDataSource error: Object does not match target type
I have an ObjectDataSource on a page that is producing the error "Object does not match target type" when its Insert method is invoked. From Googling this message, I believe this the message is deceptive and I'm actually getting a null reference…

Treighton
- 111
- 2
- 9
2
votes
2 answers
AngularJS data binding when using ng-repeat
I apologize if this has an awkward question title. I need help understanding how to perform the proper data binding in a certain case. I have an object I call TimesheetData this object stores a string which is the week like 6/13/2016, it also has an…

Bailey Miller
- 219
- 2
- 12
2
votes
1 answer
Polymer 1.0: Two-way data binding: to/from Firebase
I want to two-way databind the field values of an iron-form to a Firebase node (representing user-defined settings, for example).
settings.html

Let Me Tink About It
- 15,156
- 21
- 98
- 207
2
votes
0 answers
How to return a promise from an angular directive to the controller?
So I have a controller rendering a page, and have directive inside controller's template.
I pass controller's scope variables to directive in order to change them inside directive with 2-way binding.
Directive creates a promise inside it's link()…

antiplayer
- 323
- 7
- 15
2
votes
1 answer
Simple Observable 2-way Data binding in JavaScript
I know a lot of the big name MVC, M** style JavaScript frameworks allow 2-way binding with Observables.
Meaning if I:
Update a DOM input filed, it will also update a JavaScript object variable which could also save to server with AJAX request. …

Dave Riley
- 191
- 1
- 7
2
votes
2 answers
How to control "update trigger" in oneway databinding in wpf?
When using databinding in WPF, if you set Mode property to TwoWay, you can control the moment when the source property will be updated by setting UpdateSourceTrigger property. That scenario is possible for target -> source update stream. But how you…

Bogdan
- 33
- 1
- 5
2
votes
0 answers
WPF Binding Property With Recursive Template
I'm presenting a tree structure via a TreeView. As it is unknown how deep the tree will be, I'm using a recursive HierarchicalDataTemplate.
In the following code I'm Databinding to an external Object Tree
public class Tree :…

Kezaer
- 53
- 5